Function at 0x407ab7
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 0x407ad7
xor eax, eax
jmp 0x408095
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
cmp dword [0x41520c], 1
jle 0x407af7
movsx eax, byte [esi]
push 8
push eax
call fcn.0040cc28
pop ecx
pop ecx
jmp 0x407b06
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x407b0d
inc esi
jmp 0x407adf
push ebx
lea eax, [esi + 6]
push edi
push eax
call fcn.0040cda6
mov edi, eax
lea eax, [esi + 3]
push eax
sub edi, 0x7bc
call fcn.0040cda6
mov ebx, eax
push esi
and ebx, 0x1f
call fcn.0040cda6
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.0040cda6
mov edi, eax
lea eax, [esi + 0xd]
push eax
and edi, 0x3f
call fcn.0040cda6
shl eax, 6
or edi, eax
lea eax, [esi + 0x13]
push eax
shl edi, 5
call fcn.0040cda6
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 0x407b89
cmp al, 0x7c
je 0x407b89
inc esi
jmp 0x407b7c
cmp byte [esi], 0
je 0x407b8f
inc esi
mov al, byte [esi]
test al, al
je 0x407b99
cmp al, 0x7c
jne 0x407b8e
cmp byte [esi], 0
je 0x407b9f
inc esi
push 1
pop edi
push 8
pop ebx
cmp dword [0x41520c], edi
jle 0x407bbb
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040cc28
pop ecx
pop ecx
jmp 0x407bc9
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x407bd0
inc esi
jmp 0x407ba5
mov al, byte [esi]
test al, al
je 0x407bdd
cmp al, 0x7c
je 0x407bdd
inc esi
jmp 0x407bd0
cmp byte [esi], 0
je 0x407be3
inc esi
push esi
call fcn.0040cd1b
pop ecx
mov dword [ebp - 0x1c], eax
mov al, byte [esi]
test al, al
je 0x407bfa
cmp al, 0x7c
je 0x407bfa
inc esi
jmp 0x407bed
cmp byte [esi], 0
je 0x407c00
inc esi
cmp dword [0x41520c], edi
jle 0x407c16
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040cc28
pop ecx
pop ecx
jmp 0x407c24
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
jne 0x407bff
and dword [ebp - 0x14], eax
mov ebx, 0x107
cmp dword [0x41520c], edi
jle 0x407c46
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040cc28
pop ecx
pop ecx
jmp 0x407c55
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov ax, word [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x407c9c
cmp dword [0x41520c], edi
jle 0x407c70
movsx eax, byte [esi]
push 4
push eax
call fcn.0040cc28
pop ecx
pop ecx
jmp 0x407c7f
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 0x407c8b
sub eax, 0x30
jmp 0x407c8e
sub eax, 0x57
mov ecx, dword [ebp - 0x14]
shl ecx, 4
or ecx, eax
inc esi
mov dword [ebp - 0x14], ecx
jmp 0x407c30
push 0
push dword [ebp + 8]
call fcn.0040b027
pop ecx
test eax, eax
pop ecx
jne 0x407f23
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407d9d
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 0x407d07
mov dword [ebp - 0xc], 1
jmp 0x407d1c
ja 0x407d15
mov ax, word [ebp - 6]
cmp word [ebp - 0x18], ax
jb 0x407cfe
jbe 0x407d1c
mov dword [ebp - 4], 1
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
cmp dword [ebp - 0xc], esi
jne 0x407d94
cmp dword [ebp - 0x1c], eax
je 0x407d37
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x407d94
xor esi, esi
push esi
push esi
call fcn.0040c2d8
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 [0x417c38]
push ebx
call esi
test eax, eax
jle 0x407d85
push eax
push dword [0x417c38]
call fcn.0040c2d8
pop ecx
mov dword [ebp - 0x1c], eax
pop ecx
push edi
push dword [0x417c38]
push ebx
jmp 0x407d64
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
je 0x407d94
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x407da4
mov dword [ebp - 4], 1
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x407f1a
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
mov dl, byte [ecx]
test dl, dl
je 0x407dc6
cmp dl, 0x7c
je 0x407dc6
mov byte [eax], dl
inc ecx
inc eax
jmp 0x407db5
inc ecx
mov dl, byte [ecx]
test dl, dl
je 0x407dd8
cmp dl, 0x7c
je 0x407dd8
mov byte [eax], dl
inc ecx
inc eax
jmp 0x407dc7
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 0x407dfb
add edx, 0x7d0
jmp 0x407e01
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 [0x417bb0]
call fcn.0040b2b1
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5ac]
push dword [ebp + 8]
push eax
push dword [0x41788c]
call esi
add esp, 0x44
cmp dword [0x417840], edi
mov ebx, 0x3ed
jne 0x407f0e
cmp dword [0x417cb0], edi
jne 0x407f17
cmp dword [0x417868], edi
jne 0x407f23
xor edi, edi
cmp dword [0x417bac], edi
je 0x407eb9
push 0x19
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x4177b8]
push 0x68
push dword [0x417bb0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x417bac], edi
mov esi, eax
je 0x407ef1
push edi
push 0x96
push 0x19
push dword [0x4177b8]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp esi, eax
jne 0x407efd
mov dword [0x417cb0], eax
cmp esi, 0x3ef
jne 0x407f11
mov esi, ebx
mov dword [0x417868], eax
jmp 0x407f11
push 7
pop esi
cmp esi, ebx
je 0x407f23
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x408091
movzx esi, word [ebp + 0x10]
mov eax, dword [0x4178e4]
xor ebx, ebx
shl esi, 2
cmp dword [esi + eax], ebx
jne 0x407fe9
xor edi, edi
mov ecx, dword [0x4177d0]
movzx eax, di
shl eax, 2
mov ecx, dword [eax + ecx]
cmp ecx, ebx
je 0x407f6d
mov edx, dword [0x4178e4]
cmp dword [eax + edx], ebx
je 0x407f6d
mov eax, dword [0x4177d0]
push dword [esi + eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407f79
inc edi
cmp di, word [0x417cb4]
jbe 0x407f3c
jmp 0x407f87
mov eax, dword [0x4178e4]
movzx ecx, di
mov ecx, dword [eax + ecx*4]
mov dword [esi + eax], ecx
cmp di, word [0x417cb4]
jbe 0x407fe9
mov edi, 0x100
push edi
call fcn.0040bd85
pop ecx
mov ecx, dword [0x4178e4]
mov dword [esi + ecx], eax
lea eax, [ebp - 0x1ac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x4178e4]
push dword [esi + eax]
lea eax, [ebp - 0x1ac]
push ebx
push 0x414610
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x4178e4]
push ebx
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
je 0x407fe9
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [0x4178e4]
mov esi, dword [esi + eax]
cmp esi, ebx
je 0x408091
push 1
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x408091
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 0x408043
cmp cl, 0x7c
je 0x408043
inc eax
jmp 0x408035
cmp byte [eax], 0
je 0x408049
inc eax
dec edx
jne 0x408035
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 [0x417bb4], 1
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret