Function at 0x4f05e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x68c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0x14
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x48]
mov eax, 5
push edx
xor ebx, ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x54], eax
push 0x4b
lea eax, [esp + 0x64]
xor ebp, ebp
push ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebx
xor esi, esi
mov dword [esp + 0x68], 4
mov dword [esp + 0x80], 1
mov dword [esp + 0x8c], 3
mov dword [esp + 0x98], 2
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], eax
call dword [0x636480]
test eax, eax
je 0x4f0905
mov eax, dword [esp + 0x74]
and al, 4
sub al, 4
neg al
sbb eax, eax
inc eax
mov ebp, eax
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x4f0697
push eax
call fcn.0043a460
mov ecx, dword [esp + 0x60]
add esp, 4
push ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x4f06c3
mov edx, dword [esp + 0x6a0]
push edx
push eax
call fcn.004efd10
mov esi, eax
mov eax, dword [esp + 0x88]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x8c]
cmp eax, ebx
je 0x4f06fe
cmp esi, ebx
jne 0x4f06f1
push eax
call fcn.0043a460
mov esi, eax
mov eax, dword [esp + 0x90]
add esp, 4
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4f0702
mov esi, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4f0702
mov esi, dword [esp + 0x14]
cmp ebp, ebx
je 0x4f08e5
cmp dword [edi], ebx
je 0x4f08e5
cmp dword [edi + 0xc], ebx
je 0x4f08e5
cmp dword [esp + 0x10], ebx
jne 0x4f075a
push 3
push 0x400
lea ecx, [esp + 0x2a4]
push ecx
call dword [0x636474]
test eax, eax
je 0x4f08f6
lea edx, [esp + 0x29c]
push edx
call fcn.0043a460
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4f08f6
lea eax, [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [0x636494]
cmp eax, ebx
mov dword [esp + 0x34], 0x4f0500
mov dword [esp + 0x38], 0x4f0540
mov dword [esp + 0x3c], fcn.004f03c0
mov dword [esp + 0x40], 0x4f0590
jne 0x4f0837
lea ecx, [esp + 0x198]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4f082a
lea edx, [esp + 0x94]
push edx
push ebx
push ebx
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4f082a
mov eax, dword [0x636484]
cmp eax, ebx
je 0x4f082a
mov edx, dword [esp + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x9c]
push ecx
push edx
push ebx
call eax
test eax, eax
jne 0x4f082a
lea eax, [esp + 0x94]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4f07f0
sub eax, edx
inc eax
push eax
call fcn.0043f000
add esp, 4
cmp eax, ebx
mov dword [0x636494], eax
je 0x4f08e5
lea ecx, [esp + 0x94]
mov edx, eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x4f0820
mov eax, dword [0x636494]
cmp eax, ebx
je 0x4f08e5
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
push eax
push ebx
call dword [0x63647c]
test eax, eax
je 0x4f08e5
mov ebp, dword [esp + 0x6a0]
mov edi, dword [esp + 0x6a4]
push ebp
lea esi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004efc90
mov eax, ebp
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4f0882
sub eax, edx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x28]
push ebp
push edx
push eax
call dword [0x636470]
test eax, eax
je 0x4f08d0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4f08d0
push eax
call fcn.0043a460
add esp, 4
call fcn.004efe50
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
call dword [0x636478]
lea ecx, [esp + 0x1c]
call fcn.00422480
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4f08f6
push eax
call fcn.0043f020
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x68c
ret 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x68c
ret 8