Function at 0x404c66
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x31254
call fcn.00410a30
push ebx
push esi
lea eax, [ebp - 0x114]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004108f0
push 0x41fe14
push 2
call fcn.0040857d
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00411f82
add esp, 0x18
mov dword [ebp + 8], eax
test eax, eax
jne 0x404ce2
movzx eax, word [esi + 0x20]
push eax
push esi
push 0x41fdcc
push 0x22
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.00407b87
add esp, 0xc
jmp 0x404ec3
test byte [ebx + 0x38], 1
jne 0x404dd8
lea eax, [ebp - 0x314]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x41fb74
push 2
call fcn.0040857d
push eax
lea eax, [ebp - 0x314]
push eax
call fcn.00411f82
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x404d52
lea eax, [ebp - 0x314]
push eax
movzx eax, word [esi + 0x20]
push eax
push esi
push 0x420120
push 0x27
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.00407b87
add esp, 0x10
jmp 0x404ec3
push 2
push 0xfffffffffffffff8
push edi
call fcn.0041200f
push edi
push 8
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.00411e3a
add esp, 0x1c
cmp dword [ebp - 0x10], 0x12345678
je 0x404d88
movzx eax, word [esi + 0x20]
push eax
push esi
push 0x4200f0
push 0x2e
jmp 0x404ccd
cmp dword [ebp - 0xc], 0x30d40
ja 0x404dfd
cmp dword [ebp - 0xc], 0x1388
jb 0x404dfd
push 2
push 0xfffffffffffffff8
pop eax
sub eax, dword [ebp - 0xc]
push eax
push edi
call fcn.0041200f
push edi
lea eax, [ebp - 0x31254]
push dword [ebp - 0xc]
push 1
push eax
call fcn.00411e3a
push dword [ebp + 8]
lea eax, [ebp - 0x31254]
push dword [ebp - 0xc]
push 1
push eax
call fcn.00411c84
push edi
call fcn.00411dbd
add esp, 0x30
xor edi, edi
cmp dword [ebx + 0x3c], edi
mov dword [ebp - 8], edi
jbe 0x404e2a
lea eax, [ebp - 8]
mov ecx, esi
push eax
push dword [ebp + 8]
push edi
call fcn.004041ef
test eax, eax
je 0x404e0f
inc edi
cmp edi, dword [ebx + 0x3c]
jb 0x404de2
jmp 0x404e2a
movzx eax, word [esi + 0x20]
push eax
push esi
push 0x4200c0
push 0x2d
jmp 0x404ccd
push dword [ebp + 8]
call fcn.00411dbd
movzx eax, word [esi + 0x20]
pop ecx
push eax
push esi
push str.ov_
push 0x23
jmp 0x404ccd
push dword [ebp + 8]
call fcn.00411dbd
pop ecx
push dword [ebp - 8]
push 0x420080
push 0x1a
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
mov eax, dword [esi + 0x24]
pop ecx
cmp dword [ebp - 8], eax
pop ecx
je 0x404e67
push eax
movzx eax, word [esi + 0x20]
push dword [ebp - 8]
push eax
push esi
push 0x420034
push 0x48
jmp 0x404eb3
lea eax, [ebp - 0x114]
push eax
push 0x420024
push 0xd
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
pop ecx
xor edx, edx
pop ecx
lea ecx, [ebp - 0x114]
call fcn.00407e67
mov edi, eax
cmp edi, 0xffffffff
jne 0x404eca
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x114]
push eax
movzx eax, word [esi + 0x20]
push eax
push esi
push 0x41fffc
push 0x27
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.00407b87
add esp, 0x14
xor eax, eax
jmp 0x404fba
lea eax, [ebp - 0x114]
push eax
push 0x41ffe0
push 0x19
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
pop ecx
pop ecx
push 0x927c0
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 0x114]
push eax
push 0x41ffcc
push 0x13
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
pop ecx
lea eax, [ebp - 4]
pop ecx
mov dword [ebp + 8], 1
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x404f81
push dword [ebp - 4]
push dword [ebp - 4]
push 0x41ffa8
push 0x23
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.004016e1
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x404f81
lea eax, [ebp - 0x114]
push eax
call fcn.00411fe5
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
movzx eax, word [esi + 0x20]
push dword [ebp - 4]
push eax
push esi
push 0x41ff68
push 0x3c
call fcn.0040857d
pop ecx
pop ecx
push eax
call fcn.00407b87
add esp, 0x14
and dword [ebp + 8], 0
xor edi, edi
cmp dword [ebx + 0x3c], edi
jbe 0x404faa
lea eax, [ebp - 0x514]
mov ecx, esi
push eax
push edi
call fcn.004041bf
lea eax, [ebp - 0x514]
push eax
call fcn.00411fe5
inc edi
pop ecx
cmp edi, dword [ebx + 0x3c]
jb 0x404f88
lea eax, [ebp - 0x114]
push eax
call fcn.00411fe5
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4