Function at 0x4095cf
Capabilities:
Get common file path

Disassembly:
jmp 0x466100
sub esp, 0x330
mov eax, dword [0xa0b130]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x344]
lea eax, [esp + 0x1c]
push esi
mov esi, dword [esp + 0x340]
push edi
mov edi, dword [esp + 0x348]
mov ecx, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x104
call fcn.0041291d
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x18]
push dword [esp + 0x20]
push eax
call fcn.00412350
mov ecx, dword [esp + 0x20]
add esp, 0x10
test ecx, ecx
je 0x46618e
mov eax, dword [esp + 0x14]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x4663c6
push eax
jmp 0x4663bd
push 2
push edi
call fcn.0040cc8e
mov bl, al
add esp, 8
test bl, bl
je 0x4662d7
xor ecx, ecx
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x18]
add eax, ecx
cmp eax, dword [esp + 0x350]
jb 0x4663a6
cmp dword [esp + 0x1c], 4
jb 0x4661da
push 4
push 0x925608
push edi
call fcn.004031ed
add esp, 0xc
test eax, eax
je 0x4663a6
test bl, bl
jne 0x4661fc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040b474
mov ecx, dword [esp + 0x18]
add esp, 8
test ecx, ecx
jne 0x46616f
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0040cb94
push 2
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040ac9f
push 2
push dword [esp + 0x34]
lea eax, [esp + 0x2c]
push dword [esp + 0x34]
push eax
call fcn.004089ef
lea eax, [esp + 0x158]
xor edx, edx
mov dword [esp + 0x14c], eax
mov edx, 4
mov eax, dword [0x925608]
mov ecx, 0x208
mov dword [esp + 0x158], eax
add esp, 0x24
mov eax, dword [esp + 0x10]
mov dword [esp + 0x130], ecx
mov dword [esp + 0x12c], edx
cmp byte [eax + 1], 0x3a
je 0x466300
mov eax, dword [esp + 0x128]
mov dword [edx + eax], 0x5c434e55
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x12c]
add eax, ecx
mov edi, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x130]
lea ebx, [ecx + 2]
add edx, 4
sub edi, ebx
sub eax, edx
mov dword [esp + 0x12c], edx
cmp edi, eax
jbe 0x4662d1
push 1
lea eax, [edi + edx]
push eax
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x134]
call fcn.00405e1b
mov edx, dword [esp + 0x12c]
cmp ebx, dword [esp + 0x10]
jmp 0x46633f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test ecx, ecx
jne 0x4661a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.00409de0
add esp, 8
jmp 0x466178
mov ebx, dword [esp + 0x18]
sub ecx, edx
mov eax, dword [esp + 0x1c]
add eax, ebx
mov edi, eax
mov dword [esp + 0x10], eax
sub edi, ebx
cmp edi, ecx
jbe 0x46633d
push 1
lea eax, [edi + edx]
push eax
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x134]
call fcn.00405e1b
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
cmp ebx, eax
je 0x46635c
mov eax, dword [esp + 0x128]
push edi
add eax, edx
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x138]
add esp, 0xc
add edx, edi
push ebp
push edx
push dword [esp + 0x130]
mov dword [esp + 0x138], edx
push esi
call fcn.00412350
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x144]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
cmp eax, ecx
je 0x466395
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x4663c6
push eax
call edi
jmp 0x4663c3
mov dword [esi], 0
call fcn.0040ab32
mov dword [esi + 4], eax
lea eax, [esp + 0x24]
cmp edi, eax
je 0x4663c6
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x33c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004087b5
add esp, 0x330
ret