Function at 0x4074b6
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 0x4074d6
xor eax, eax
jmp 0x407a94
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
cmp dword [0x41311c], 1
jle 0x4074f6
movsx eax, byte [esi]
push 8
push eax
call fcn.0040c27e
pop ecx
pop ecx
jmp 0x407505
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x40750c
inc esi
jmp 0x4074de
push ebx
lea eax, [esi + 6]
push edi
push eax
call fcn.0040c37e
mov edi, eax
lea eax, [esi + 3]
push eax
sub edi, 0x7bc
call fcn.0040c37e
mov ebx, eax
push esi
and ebx, 0x1f
call fcn.0040c37e
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.0040c37e
mov edi, eax
lea eax, [esi + 0xd]
push eax
and edi, 0x3f
call fcn.0040c37e
shl eax, 6
or edi, eax
lea eax, [esi + 0x13]
push eax
shl edi, 5
call fcn.0040c37e
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 0x407588
cmp al, 0x7c
je 0x407588
inc esi
jmp 0x40757b
cmp byte [esi], 0
je 0x40758e
inc esi
mov al, byte [esi]
test al, al
je 0x407598
cmp al, 0x7c
jne 0x40758d
cmp byte [esi], 0
je 0x40759e
inc esi
push 1
pop edi
push 8
pop ebx
cmp dword [0x41311c], edi
jle 0x4075ba
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040c27e
pop ecx
pop ecx
jmp 0x4075c8
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x4075cf
inc esi
jmp 0x4075a4
mov al, byte [esi]
test al, al
je 0x4075dc
cmp al, 0x7c
je 0x4075dc
inc esi
jmp 0x4075cf
cmp byte [esi], 0
je 0x4075e2
inc esi
push esi
call fcn.0040c2f3
pop ecx
mov dword [ebp - 0x1c], eax
mov al, byte [esi]
test al, al
je 0x4075f9
cmp al, 0x7c
je 0x4075f9
inc esi
jmp 0x4075ec
cmp byte [esi], 0
je 0x4075ff
inc esi
cmp dword [0x41311c], edi
jle 0x407615
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040c27e
pop ecx
pop ecx
jmp 0x407623
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
jne 0x4075fe
and dword [ebp - 0x14], eax
mov ebx, 0x107
cmp dword [0x41311c], edi
jle 0x407645
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040c27e
pop ecx
pop ecx
jmp 0x407654
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov ax, word [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x40769b
cmp dword [0x41311c], edi
jle 0x40766f
movsx eax, byte [esi]
push 4
push eax
call fcn.0040c27e
pop ecx
pop ecx
jmp 0x40767e
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 0x40768a
sub eax, 0x30
jmp 0x40768d
sub eax, 0x57
mov ecx, dword [ebp - 0x14]
shl ecx, 4
or ecx, eax
inc esi
mov dword [ebp - 0x14], ecx
jmp 0x40762f
push 0
push dword [ebp + 8]
call fcn.0040a933
pop ecx
test eax, eax
pop ecx
jne 0x407922
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40779c
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 0x407706
mov dword [ebp - 0xc], 1
jmp 0x40771b
ja 0x407714
mov ax, word [ebp - 6]
cmp word [ebp - 0x18], ax
jb 0x4076fd
jbe 0x40771b
mov dword [ebp - 4], 1
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
cmp dword [ebp - 0xc], esi
jne 0x407793
cmp dword [ebp - 0x1c], eax
je 0x407736
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x407793
xor esi, esi
push esi
push esi
call fcn.0040bd4d
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 [0x413b10]
push ebx
call esi
test eax, eax
jle 0x407784
push eax
push dword [0x413b10]
call fcn.0040bd4d
pop ecx
mov dword [ebp - 0x1c], eax
pop ecx
push edi
push dword [0x413b10]
push ebx
jmp 0x407763
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
je 0x407793
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x4077a3
mov dword [ebp - 4], 1
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x407919
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
mov dl, byte [ecx]
test dl, dl
je 0x4077c5
cmp dl, 0x7c
je 0x4077c5
mov byte [eax], dl
inc ecx
inc eax
jmp 0x4077b4
inc ecx
mov dl, byte [ecx]
test dl, dl
je 0x4077d7
cmp dl, 0x7c
je 0x4077d7
mov byte [eax], dl
inc ecx
inc eax
jmp 0x4077c6
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 0x4077fa
add edx, 0x7d0
jmp 0x407800
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 [0x413a90]
call fcn.0040ab9d
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5ac]
push dword [ebp + 8]
push eax
push dword [0x413754]
call esi
add esp, 0x44
cmp dword [0x41370c], edi
mov ebx, 0x3ed
jne 0x40790d
cmp dword [0x413b90], edi
jne 0x407916
cmp dword [0x413730], edi
jne 0x407922
xor edi, edi
cmp dword [0x413a8c], edi
je 0x4078b8
push 0x19
push dword [0x413690]
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x413690]
push 0x68
push dword [0x413a90]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x413a8c], edi
mov esi, eax
je 0x4078f0
push edi
push 0x96
push 0x19
push dword [0x413690]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp esi, eax
jne 0x4078fc
mov dword [0x413b90], eax
cmp esi, 0x3ef
jne 0x407910
mov esi, ebx
mov dword [0x413730], eax
jmp 0x407910
push 7
pop esi
cmp esi, ebx
je 0x407922
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x407a90
movzx esi, word [ebp + 0x10]
mov eax, dword [0x4137ac]
xor ebx, ebx
shl esi, 2
cmp dword [esi + eax], ebx
jne 0x4079e8
xor edi, edi
mov ecx, dword [0x4136a4]
movzx eax, di
shl eax, 2
mov ecx, dword [eax + ecx]
cmp ecx, ebx
je 0x40796c
mov edx, dword [0x4137ac]
cmp dword [eax + edx], ebx
je 0x40796c
mov eax, dword [0x4136a4]
push dword [esi + eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407978
inc edi
cmp di, word [0x413b94]
jbe 0x40793b
jmp 0x407986
mov eax, dword [0x4137ac]
movzx ecx, di
mov ecx, dword [eax + ecx*4]
mov dword [esi + eax], ecx
cmp di, word [0x413b94]
jbe 0x4079e8
mov edi, 0x100
push edi
call fcn.0040b671
pop ecx
mov ecx, dword [0x4137ac]
mov dword [esi + ecx], eax
lea eax, [ebp - 0x1ac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x4137ac]
push dword [esi + eax]
lea eax, [ebp - 0x1ac]
push ebx
push 0x412570
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x4137ac]
push ebx
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
je 0x4079e8
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [0x4137ac]
mov esi, dword [esi + eax]
cmp esi, ebx
je 0x407a90
push 1
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x407a90
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 0x407a42
cmp cl, 0x7c
je 0x407a42
inc eax
jmp 0x407a34
cmp byte [eax], 0
je 0x407a48
inc eax
dec edx
jne 0x407a34
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 [0x413a94], 1
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret