Function at 0x4075c1
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 0x4075e1
xor eax, eax
jmp 0x407b9f
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
cmp dword [0x4141ac], 1
jle 0x407601
movsx eax, byte [esi]
push 8
push eax
call fcn.0040c4ae
pop ecx
pop ecx
jmp 0x407610
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x407617
inc esi
jmp 0x4075e9
push ebx
lea eax, [esi + 6]
push edi
push eax
call fcn.0040c5ae
mov edi, eax
lea eax, [esi + 3]
push eax
sub edi, 0x7bc
call fcn.0040c5ae
mov ebx, eax
push esi
and ebx, 0x1f
call fcn.0040c5ae
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.0040c5ae
mov edi, eax
lea eax, [esi + 0xd]
push eax
and edi, 0x3f
call fcn.0040c5ae
shl eax, 6
or edi, eax
lea eax, [esi + 0x13]
push eax
shl edi, 5
call fcn.0040c5ae
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 0x407693
cmp al, 0x7c
je 0x407693
inc esi
jmp 0x407686
cmp byte [esi], 0
je 0x407699
inc esi
mov al, byte [esi]
test al, al
je 0x4076a3
cmp al, 0x7c
jne 0x407698
cmp byte [esi], 0
je 0x4076a9
inc esi
push 1
pop edi
push 8
pop ebx
cmp dword [0x4141ac], edi
jle 0x4076c5
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040c4ae
pop ecx
pop ecx
jmp 0x4076d3
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x4076da
inc esi
jmp 0x4076af
mov al, byte [esi]
test al, al
je 0x4076e7
cmp al, 0x7c
je 0x4076e7
inc esi
jmp 0x4076da
cmp byte [esi], 0
je 0x4076ed
inc esi
push esi
call fcn.0040c523
pop ecx
mov dword [ebp - 0x1c], eax
mov al, byte [esi]
test al, al
je 0x407704
cmp al, 0x7c
je 0x407704
inc esi
jmp 0x4076f7
cmp byte [esi], 0
je 0x40770a
inc esi
cmp dword [0x4141ac], edi
jle 0x407720
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040c4ae
pop ecx
pop ecx
jmp 0x40772e
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
jne 0x407709
and dword [ebp - 0x14], eax
mov ebx, 0x107
cmp dword [0x4141ac], edi
jle 0x407750
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040c4ae
pop ecx
pop ecx
jmp 0x40775f
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov ax, word [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x4077a6
cmp dword [0x4141ac], edi
jle 0x40777a
movsx eax, byte [esi]
push 4
push eax
call fcn.0040c4ae
pop ecx
pop ecx
jmp 0x407789
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 0x407795
sub eax, 0x30
jmp 0x407798
sub eax, 0x57
mov ecx, dword [ebp - 0x14]
shl ecx, 4
or ecx, eax
inc esi
mov dword [ebp - 0x14], ecx
jmp 0x40773a
push 0
push dword [ebp + 8]
call fcn.0040aa86
pop ecx
test eax, eax
pop ecx
jne 0x407a2d
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4078a7
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 0x407811
mov dword [ebp - 0xc], 1
jmp 0x407826
ja 0x40781f
mov ax, word [ebp - 6]
cmp word [ebp - 0x18], ax
jb 0x407808
jbe 0x407826
mov dword [ebp - 4], 1
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
cmp dword [ebp - 0xc], esi
jne 0x40789e
cmp dword [ebp - 0x1c], eax
je 0x407841
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x40789e
xor esi, esi
push esi
push esi
call fcn.0040bea0
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 [0x416bd4]
push ebx
call esi
test eax, eax
jle 0x40788f
push eax
push dword [0x416bd4]
call fcn.0040bea0
pop ecx
mov dword [ebp - 0x1c], eax
pop ecx
push edi
push dword [0x416bd4]
push ebx
jmp 0x40786e
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
je 0x40789e
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x4078ae
mov dword [ebp - 4], 1
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x407a24
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
mov dl, byte [ecx]
test dl, dl
je 0x4078d0
cmp dl, 0x7c
je 0x4078d0
mov byte [eax], dl
inc ecx
inc eax
jmp 0x4078bf
inc ecx
mov dl, byte [ecx]
test dl, dl
je 0x4078e2
cmp dl, 0x7c
je 0x4078e2
mov byte [eax], dl
inc ecx
inc eax
jmp 0x4078d1
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 0x407905
add edx, 0x7d0
jmp 0x40790b
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 [0x416b50]
call fcn.0040acf0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5ac]
push dword [ebp + 8]
push eax
push dword [0x416820]
call esi
add esp, 0x44
cmp dword [0x4167d8], edi
mov ebx, 0x3ed
jne 0x407a18
cmp dword [0x416c50], edi
jne 0x407a21
cmp dword [0x4167fc], edi
jne 0x407a2d
xor edi, edi
cmp dword [0x416b4c], edi
je 0x4079c3
push 0x19
push dword [0x416758]
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x416758]
push 0x68
push dword [0x416b50]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x416b4c], edi
mov esi, eax
je 0x4079fb
push edi
push 0x96
push 0x19
push dword [0x416758]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp esi, eax
jne 0x407a07
mov dword [0x416c50], eax
cmp esi, 0x3ef
jne 0x407a1b
mov esi, ebx
mov dword [0x4167fc], eax
jmp 0x407a1b
push 7
pop esi
cmp esi, ebx
je 0x407a2d
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x407b9b
movzx esi, word [ebp + 0x10]
mov eax, dword [0x416878]
xor ebx, ebx
shl esi, 2
cmp dword [esi + eax], ebx
jne 0x407af3
xor edi, edi
mov ecx, dword [0x41676c]
movzx eax, di
shl eax, 2
mov ecx, dword [eax + ecx]
cmp ecx, ebx
je 0x407a77
mov edx, dword [0x416878]
cmp dword [eax + edx], ebx
je 0x407a77
mov eax, dword [0x41676c]
push dword [esi + eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407a83
inc edi
cmp di, word [0x416c54]
jbe 0x407a46
jmp 0x407a91
mov eax, dword [0x416878]
movzx ecx, di
mov ecx, dword [eax + ecx*4]
mov dword [esi + eax], ecx
cmp di, word [0x416c54]
jbe 0x407af3
mov edi, 0x100
push edi
call fcn.0040b7c4
pop ecx
mov ecx, dword [0x416878]
mov dword [esi + ecx], eax
lea eax, [ebp - 0x1ac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x416878]
push dword [esi + eax]
lea eax, [ebp - 0x1ac]
push ebx
push 0x4135d4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x416878]
push ebx
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
je 0x407af3
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [0x416878]
mov esi, dword [esi + eax]
cmp esi, ebx
je 0x407b9b
push 1
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x407b9b
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 0x407b4d
cmp cl, 0x7c
je 0x407b4d
inc eax
jmp 0x407b3f
cmp byte [eax], 0
je 0x407b53
inc eax
dec edx
jne 0x407b3f
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 [0x416b54], 1
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret