Function at 0x4612b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3195
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x4d7a50]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x348], ecx
lea eax, [ebp - 0x314]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 1
push 0
push 0
push 0x4bfba0
push 0x206
push 0
push 0x4bfbd0
push 1
lea ecx, [ebp - 0x204]
call fcn.004882d2
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x58
call fcn.0040fd30
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
movzx edx, byte [ecx + 0xd4]
test edx, edx
jne 0x461349
mov dword [ebp - 0x14], 0x4c
lea ecx, [ebp - 0x204]
call fcn.004879a5
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [ebp - 0x10], 0xc3500
lea ecx, [ebp - 0x204]
call fcn.004879a5
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004781df
add esp, 4
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x324]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x204]
call fcn.004879a5
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x1c], edx
lea ecx, [ebp - 0x204]
call fcn.004879a5
mov eax, dword [eax + 0x1c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x208]
add ecx, 0xd8
call fcn.0040ff40
mov esi, eax
lea ecx, [ebp - 0x204]
call fcn.004879a5
mov dword [eax + 0x2c], esi
lea ecx, [ebp - 0x204]
call fcn.00488aba
cmp eax, 2
jne 0x461403
lea ecx, [ebp - 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x204]
call fcn.004880da
jmp 0x461718
lea ecx, [ebp - 0x204]
call fcn.00452aa0
mov dword [ebp - 0x31c], eax
lea ecx, [ebp - 0x318]
call fcn.0040fe00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0040fe00
mov byte [ebp - 4], 2
mov byte [ebp - 0x209], 1
cmp dword [ebp - 0x31c], 0
je 0x461564
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x204]
call fcn.00488ff6
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x350], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x350]
push edx
lea ecx, [ebp - 0x318]
call fcn.0040fee0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x328]
call fcn.0040fec0
movzx eax, byte [ebp - 0x209]
test eax, eax
je 0x4614b9
mov byte [ebp - 0x209], 0
lea ecx, [ebp - 0x318]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040fee0
jmp 0x46155f
lea ecx, [ebp - 0x318]
call fcn.0040e620
movzx edx, al
test edx, edx
jne 0x46155f
push ecx
mov ecx, esp
mov dword [ebp - 0x32c], esp
lea eax, [ebp - 0x318]
push eax
call fcn.0040fe20
mov dword [ebp - 0x354], eax
lea ecx, [ebp - 0x330]
push ecx
call fcn.00402430
add esp, 8
mov dword [ebp - 0x358], eax
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x35c], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x35c]
call fcn.0040ff40
push eax
mov ecx, dword [ebp - 0x348]
call fcn.00458e50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x330]
call fcn.0040fec0
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x348]
add ecx, 0x5c
call fcn.0040fbd0
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx + 0x78]
add edx, 1
mov eax, dword [ebp - 0x348]
mov dword [eax + 0x78], edx
jmp 0x461436
lea ecx, [ebp - 0x1c]
call fcn.0040e620
movzx ecx, al
test ecx, ecx
jne 0x461601
push ecx
mov ecx, esp
mov dword [ebp - 0x334], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.0040fe20
mov dword [ebp - 0x360], eax
lea eax, [ebp - 0x338]
push eax
call fcn.00402430
add esp, 8
mov dword [ebp - 0x364], eax
mov ecx, dword [ebp - 0x364]
mov dword [ebp - 0x368], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x368]
call fcn.0040ff40
push eax
mov ecx, dword [ebp - 0x348]
call fcn.00458e50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x338]
call fcn.0040fec0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x348]
add ecx, 0x5c
call fcn.0040fbd0
mov eax, dword [ebp - 0x348]
mov ecx, dword [eax + 0x78]
add ecx, 1
mov edx, dword [ebp - 0x348]
mov dword [edx + 0x78], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
push ecx
call fcn.004781d4
add esp, 4
push ecx
mov ecx, esp
mov dword [ebp - 0x340], esp
lea edx, [ebp - 0x1c]
push edx
call fcn.0040fe20
mov dword [ebp - 0x36c], eax
lea eax, [ebp - 0x344]
push eax
call fcn.00402520
add esp, 8
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
mov dword [ebp - 0x374], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x374]
push edx
mov ecx, dword [ebp - 0x208]
add ecx, 0xd8
call fcn.0040fee0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x344]
call fcn.0040fec0
mov eax, dword [ebp - 0x348]
cmp dword [eax + 0x74], 0
je 0x4616eb
lea ecx, [ebp - 0x320]
call fcn.0040fe00
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x348]
call fcn.0040fd40
push eax
mov ecx, dword [ebp - 0x348]
mov edx, dword [ecx + 0x78]
push edx
push 0x4bfbd4
lea eax, [ebp - 0x320]
push eax
call fcn.00410a80
add esp, 0x10
lea ecx, [ebp - 0x320]
call fcn.0040ff40
push eax
mov ecx, dword [ebp - 0x348]
mov ecx, dword [ecx + 0x74]
call fcn.0048106f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x320]
call fcn.0040fec0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0040fec0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x318]
call fcn.0040fec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x204]
call fcn.004880da
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0049a6da
mov esp, ebp
pop ebp
ret