Function at 0x407b7a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ac
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x15
jge 0x407b9a
xor eax, eax
jmp 0x408158
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
cmp dword [0x41521c], 1
jle 0x407bba
movsx eax, byte [esi]
push 8
push eax
call fcn.0040cea8
pop ecx
pop ecx
jmp 0x407bc9
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x407bd0
inc esi
jmp 0x407ba2
push ebx
lea eax, [esi + 6]
push edi
push eax
call fcn.0040d026
mov edi, eax
lea eax, [esi + 3]
push eax
sub edi, 0x7bc
call fcn.0040d026
mov ebx, eax
push esi
and ebx, 0x1f
call fcn.0040d026
and eax, 0xf
shl edi, 4
or eax, edi
shl eax, 5
or ebx, eax
lea eax, [esi + 0x10]
push eax
mov dword [ebp - 0x10], ebx
call fcn.0040d026
mov edi, eax
lea eax, [esi + 0xd]
push eax
and edi, 0x3f
call fcn.0040d026
shl eax, 6
or edi, eax
lea eax, [esi + 0x13]
push eax
shl edi, 5
call fcn.0040d026
cdq
sub eax, edx
add esp, 0x18
sar eax, 1
and eax, 0x1f
or edi, eax
mov dword [ebp - 0x18], edi
mov al, byte [esi]
test al, al
je 0x407c4c
cmp al, 0x7c
je 0x407c4c
inc esi
jmp 0x407c3f
cmp byte [esi], 0
je 0x407c52
inc esi
mov al, byte [esi]
test al, al
je 0x407c5c
cmp al, 0x7c
jne 0x407c51
cmp byte [esi], 0
je 0x407c62
inc esi
push 1
pop edi
push 8
pop ebx
cmp dword [0x41521c], edi
jle 0x407c7e
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040cea8
pop ecx
pop ecx
jmp 0x407c8c
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x407c93
inc esi
jmp 0x407c68
mov al, byte [esi]
test al, al
je 0x407ca0
cmp al, 0x7c
je 0x407ca0
inc esi
jmp 0x407c93
cmp byte [esi], 0
je 0x407ca6
inc esi
push esi
call fcn.0040cf9b
pop ecx
mov dword [ebp - 0x1c], eax
mov al, byte [esi]
test al, al
je 0x407cbd
cmp al, 0x7c
je 0x407cbd
inc esi
jmp 0x407cb0
cmp byte [esi], 0
je 0x407cc3
inc esi
cmp dword [0x41521c], edi
jle 0x407cd9
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040cea8
pop ecx
pop ecx
jmp 0x407ce7
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
jne 0x407cc2
and dword [ebp - 0x14], eax
mov ebx, 0x107
cmp dword [0x41521c], edi
jle 0x407d09
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040cea8
pop ecx
pop ecx
jmp 0x407d18
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov ax, word [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x407d5f
cmp dword [0x41521c], edi
jle 0x407d33
movsx eax, byte [esi]
push 4
push eax
call fcn.0040cea8
pop ecx
pop ecx
jmp 0x407d42
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
movsx eax, byte [esi]
je 0x407d4e
sub eax, 0x30
jmp 0x407d51
sub eax, 0x57
mov ecx, dword [ebp - 0x14]
shl ecx, 4
or ecx, eax
inc esi
mov dword [ebp - 0x14], ecx
jmp 0x407cf3
push 0
push dword [ebp + 8]
call fcn.0040b1ca
pop ecx
test eax, eax
pop ecx
jne 0x407fe6
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407e60
lea eax, [ebp - 0x2c]
push eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov ax, word [ebp - 8]
cmp word [ebp - 0x10], ax
jae 0x407dca
mov dword [ebp - 0xc], 1
jmp 0x407ddf
ja 0x407dd8
mov ax, word [ebp - 6]
cmp word [ebp - 0x18], ax
jb 0x407dc1
jbe 0x407ddf
mov dword [ebp - 4], 1
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
cmp dword [ebp - 0xc], esi
jne 0x407e57
cmp dword [ebp - 0x1c], eax
je 0x407dfa
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x407e57
xor esi, esi
push esi
push esi
call fcn.0040c47b
pop ecx
pop ecx
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
mov esi, dword [sym.imp.KERNEL32.dll__lread]
mov edi, 0x4000
push edi
push dword [0x417c5c]
push ebx
call esi
test eax, eax
jle 0x407e48
push eax
push dword [0x417c5c]
call fcn.0040c47b
pop ecx
mov dword [ebp - 0x1c], eax
pop ecx
push edi
push dword [0x417c5c]
push ebx
jmp 0x407e27
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
je 0x407e57
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x407e67
mov dword [ebp - 4], 1
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x407fdd
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
mov dl, byte [ecx]
test dl, dl
je 0x407e89
cmp dl, 0x7c
je 0x407e89
mov byte [eax], dl
inc ecx
inc eax
jmp 0x407e78
inc ecx
mov dl, byte [ecx]
test dl, dl
je 0x407e9b
cmp dl, 0x7c
je 0x407e9b
mov byte [eax], dl
inc ecx
inc eax
jmp 0x407e8a
movzx ecx, word [ebp - 8]
and byte [eax], 0
mov eax, ecx
shr eax, 9
add eax, 0x50
push 0x64
cdq
pop esi
idiv esi
cmp dx, 0x3c
jae 0x407ebe
add edx, 0x7d0
jmp 0x407ec4
add edx, 0x76c
movzx eax, word [ebp - 6]
mov esi, eax
and esi, 0x1f
shl esi, 1
push esi
mov esi, eax
shr esi, 5
and esi, 0x3f
shr eax, 0xb
push esi
push eax
movzx eax, dx
push eax
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, ecx
shr ecx, 5
and eax, 0x1f
and ecx, 0xf
push eax
push ecx
lea eax, [ebp - 0xac]
push str.__02d__02d__04d___02d:_02d:_02d
push eax
call esi
lea eax, [ebp - 0x5ac]
push 0x400
push eax
push 0x4d
push dword [0x417bd4]
call fcn.0040b454
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5ac]
push dword [ebp + 8]
push eax
push dword [0x4178a4]
call esi
add esp, 0x44
cmp dword [0x417858], edi
mov ebx, 0x3ed
jne 0x407fd1
cmp dword [0x417cd0], edi
jne 0x407fda
cmp dword [0x417880], edi
jne 0x407fe6
xor edi, edi
cmp dword [0x417bd0], edi
je 0x407f7c
push 0x19
push dword [0x4177c8]
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x4177c8]
push 0x68
push dword [0x417bd4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x417bd0], edi
mov esi, eax
je 0x407fb4
push edi
push 0x96
push 0x19
push dword [0x4177c8]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp esi, eax
jne 0x407fc0
mov dword [0x417cd0], eax
cmp esi, 0x3ef
jne 0x407fd4
mov esi, ebx
mov dword [0x417880], eax
jmp 0x407fd4
push 7
pop esi
cmp esi, ebx
je 0x407fe6
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x408154
movzx esi, word [ebp + 0x10]
mov eax, dword [0x4178fc]
xor ebx, ebx
shl esi, 2
cmp dword [esi + eax], ebx
jne 0x4080ac
xor edi, edi
mov ecx, dword [0x4177e0]
movzx eax, di
shl eax, 2
mov ecx, dword [eax + ecx]
cmp ecx, ebx
je 0x408030
mov edx, dword [0x4178fc]
cmp dword [eax + edx], ebx
je 0x408030
mov eax, dword [0x4177e0]
push dword [esi + eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40803c
inc edi
cmp di, word [0x417cd4]
jbe 0x407fff
jmp 0x40804a
mov eax, dword [0x4178fc]
movzx ecx, di
mov ecx, dword [eax + ecx*4]
mov dword [esi + eax], ecx
cmp di, word [0x417cd4]
jbe 0x4080ac
mov edi, 0x100
push edi
call fcn.0040bf28
pop ecx
mov ecx, dword [0x4178fc]
mov dword [esi + ecx], eax
lea eax, [ebp - 0x1ac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x4178fc]
push dword [esi + eax]
lea eax, [ebp - 0x1ac]
push ebx
push 0x414600
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x4178fc]
push ebx
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
je 0x4080ac
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [0x4178fc]
mov esi, dword [esi + eax]
cmp esi, ebx
je 0x408154
push 1
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x408154
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll__lwrite]
push eax
push dword [ebp + 8]
push edi
call esi
mov eax, dword [ebp + 0xc]
push 3
pop edx
mov cl, byte [eax]
test cl, cl
je 0x408106
cmp cl, 0x7c
je 0x408106
inc eax
jmp 0x4080f8
cmp byte [eax], 0
je 0x40810c
inc eax
dec edx
jne 0x4080f8
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x1ac]
push str._u_u_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x1ac]
push eax
call ebx
push eax
lea eax, [ebp - 0x1ac]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
mov dword [0x417bd8], 1
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret