Function at 0x40748e
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 0x4074ae
xor eax, eax
jmp 0x407a6c
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
cmp dword [0x4130bc], 1
jle 0x4074ce
movsx eax, byte [esi]
push 8
push eax
call fcn.0040c08e
pop ecx
pop ecx
jmp 0x4074dd
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x4074e4
inc esi
jmp 0x4074b6
push ebx
lea eax, [esi + 6]
push edi
push eax
call fcn.0040c18e
mov edi, eax
lea eax, [esi + 3]
push eax
sub edi, 0x7bc
call fcn.0040c18e
mov ebx, eax
push esi
and ebx, 0x1f
call fcn.0040c18e
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.0040c18e
mov edi, eax
lea eax, [esi + 0xd]
push eax
and edi, 0x3f
call fcn.0040c18e
shl eax, 6
or edi, eax
lea eax, [esi + 0x13]
push eax
shl edi, 5
call fcn.0040c18e
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 0x407560
cmp al, 0x7c
je 0x407560
inc esi
jmp 0x407553
cmp byte [esi], 0
je 0x407566
inc esi
mov al, byte [esi]
test al, al
je 0x407570
cmp al, 0x7c
jne 0x407565
cmp byte [esi], 0
je 0x407576
inc esi
push 1
pop edi
push 8
pop ebx
cmp dword [0x4130bc], edi
jle 0x407592
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040c08e
pop ecx
pop ecx
jmp 0x4075a0
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x4075a7
inc esi
jmp 0x40757c
mov al, byte [esi]
test al, al
je 0x4075b4
cmp al, 0x7c
je 0x4075b4
inc esi
jmp 0x4075a7
cmp byte [esi], 0
je 0x4075ba
inc esi
push esi
call fcn.0040c103
pop ecx
mov dword [ebp - 0x1c], eax
mov al, byte [esi]
test al, al
je 0x4075d1
cmp al, 0x7c
je 0x4075d1
inc esi
jmp 0x4075c4
cmp byte [esi], 0
je 0x4075d7
inc esi
cmp dword [0x4130bc], edi
jle 0x4075ed
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040c08e
pop ecx
pop ecx
jmp 0x4075fb
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, ebx
test eax, eax
jne 0x4075d6
and dword [ebp - 0x14], eax
mov ebx, 0x107
cmp dword [0x4130bc], edi
jle 0x40761d
movsx eax, byte [esi]
push ebx
push eax
call fcn.0040c08e
pop ecx
pop ecx
jmp 0x40762c
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov ax, word [ecx + eax*2]
and eax, ebx
test eax, eax
je 0x407673
cmp dword [0x4130bc], edi
jle 0x407647
movsx eax, byte [esi]
push 4
push eax
call fcn.0040c08e
pop ecx
pop ecx
jmp 0x407656
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 0x407662
sub eax, 0x30
jmp 0x407665
sub eax, 0x57
mov ecx, dword [ebp - 0x14]
shl ecx, 4
or ecx, eax
inc esi
mov dword [ebp - 0x14], ecx
jmp 0x407607
push 0
push dword [ebp + 8]
call fcn.0040a7c1
pop ecx
test eax, eax
pop ecx
jne 0x4078fa
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407774
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 0x4076de
mov dword [ebp - 0xc], 1
jmp 0x4076f3
ja 0x4076ec
mov ax, word [ebp - 6]
cmp word [ebp - 0x18], ax
jb 0x4076d5
jbe 0x4076f3
mov dword [ebp - 4], 1
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__llseek]
cmp dword [ebp - 0xc], esi
jne 0x40776b
cmp dword [ebp - 0x1c], eax
je 0x40770e
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x40776b
xor esi, esi
push esi
push esi
call fcn.0040bb64
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 [0x413ab0]
push ebx
call esi
test eax, eax
jle 0x40775c
push eax
push dword [0x413ab0]
call fcn.0040bb64
pop ecx
mov dword [ebp - 0x1c], eax
pop ecx
push edi
push dword [0x413ab0]
push ebx
jmp 0x40773b
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
je 0x40776b
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
jmp 0x40777b
mov dword [ebp - 4], 1
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x4078f1
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
mov dl, byte [ecx]
test dl, dl
je 0x40779d
cmp dl, 0x7c
je 0x40779d
mov byte [eax], dl
inc ecx
inc eax
jmp 0x40778c
inc ecx
mov dl, byte [ecx]
test dl, dl
je 0x4077af
cmp dl, 0x7c
je 0x4077af
mov byte [eax], dl
inc ecx
inc eax
jmp 0x40779e
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 0x4077d2
add edx, 0x7d0
jmp 0x4077d8
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 [0x413a30]
call fcn.0040aa2b
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5ac]
push dword [ebp + 8]
push eax
push dword [0x4136f4]
call esi
add esp, 0x44
cmp dword [0x4136ac], edi
mov ebx, 0x3ed
jne 0x4078e5
cmp dword [0x413b30], edi
jne 0x4078ee
cmp dword [0x4136d0], edi
jne 0x4078fa
xor edi, edi
cmp dword [0x413a2c], edi
je 0x407890
push 0x19
push dword [0x413630]
call dword [sym.imp.USER32.dll_KillTimer]
push edi
push sym.UNWISE32.EXE__SharedDlg_16
push dword [0x413630]
push 0x68
push dword [0x413a30]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp dword [0x413a2c], edi
mov esi, eax
je 0x4078c8
push edi
push 0x96
push 0x19
push dword [0x413630]
call dword [sym.imp.USER32.dll_SetTimer]
push 1
pop eax
cmp esi, eax
jne 0x4078d4
mov dword [0x413b30], eax
cmp esi, 0x3ef
jne 0x4078e8
mov esi, ebx
mov dword [0x4136d0], eax
jmp 0x4078e8
push 7
pop esi
cmp esi, ebx
je 0x4078fa
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
je 0x407a68
movzx esi, word [ebp + 0x10]
mov eax, dword [0x41374c]
xor ebx, ebx
shl esi, 2
cmp dword [esi + eax], ebx
jne 0x4079c0
xor edi, edi
mov ecx, dword [0x413644]
movzx eax, di
shl eax, 2
mov ecx, dword [eax + ecx]
cmp ecx, ebx
je 0x407944
mov edx, dword [0x41374c]
cmp dword [eax + edx], ebx
je 0x407944
mov eax, dword [0x413644]
push dword [esi + eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407950
inc edi
cmp di, word [0x413b34]
jbe 0x407913
jmp 0x40795e
mov eax, dword [0x41374c]
movzx ecx, di
mov ecx, dword [eax + ecx*4]
mov dword [esi + eax], ecx
cmp di, word [0x413b34]
jbe 0x4079c0
mov edi, 0x100
push edi
call fcn.0040b488
pop ecx
mov ecx, dword [0x41374c]
mov dword [esi + ecx], eax
lea eax, [ebp - 0x1ac]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x41374c]
push dword [esi + eax]
lea eax, [ebp - 0x1ac]
push ebx
push 0x412570
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x41374c]
push ebx
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
je 0x4079c0
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [0x41374c]
mov esi, dword [esi + eax]
cmp esi, ebx
je 0x407a68
push 1
push esi
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x407a68
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 0x407a1a
cmp cl, 0x7c
je 0x407a1a
inc eax
jmp 0x407a0c
cmp byte [eax], 0
je 0x407a20
inc eax
dec edx
jne 0x407a0c
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 [0x413a34], 1
pop edi
xor eax, eax
pop ebx
pop esi
leave
ret