Function at 0x45dc40
Capabilities:
Access peb ldr_data
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a80e
mov eax, dword fs:[0]
push eax
sub esp, 0x5c4
mov eax, dword [0x578750]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5cc], ecx
mov eax, dword [0x57af80]
mov dword [ebp - 0x5c4], eax
mov ecx, dword [0x57ab64]
mov dword [ebp - 0x5c0], ecx
push 0
push 0
push 6
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x5bc]
call fcn.00444370
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401b80
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401d90
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
add eax, 0x34
mov dword [ebp - 0x5d0], eax
mov ecx, dword [ebp - 0x5d0]
mov edx, dword [ecx]
or edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x5d0]
mov dword [eax], edx
lea ecx, [ebp - 0x10]
call fcn.00401b80
mov byte [ebp - 4], 2
push 0x543d20
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push str..JCT_.txt
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x543d54
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x543d74
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x543d7c
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x543d98
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x543da0
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x543dc4
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
lea ecx, [ebp - 0x10]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0xc], esi
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0x3c], 0x543dcc
lea ecx, [ebp - 0x14]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0x30], esi
push 0x104
mov ecx, dword [ebp + 8]
call fcn.00401c20
mov esi, eax
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0x1c], esi
mov ecx, 0x584f80
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x5bc]
call fcn.004e5de5
mov dword [eax + 0x2c], esi
push 0x584f80
lea ecx, [ebp - 0x298]
call fcn.00413820
lea ecx, [ebp - 0x22c]
push ecx
push 0x20a
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x5bc]
call fcn.004e6f5e
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x230], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00434dd0
cmp dword [ebp - 0x230], 0
je 0x45ded9
mov edx, dword [0x57af80]
cmp edx, dword [ebp - 0x5c4]
je 0x45deb1
mov eax, dword [0x57af80]
push eax
call fcn.004671c0
add esp, 4
mov dword [0x57af88], eax
mov ecx, dword [0x57af80]
push ecx
push 0x543dd4
push 0x543dfc
mov ecx, 0x5a622c
call fcn.004b7f30
mov edx, dword [0x57ab64]
cmp edx, dword [ebp - 0x5c0]
je 0x45ded9
mov eax, dword [0x57ab64]
push eax
push 0x543e0c
push 0x543e1c
mov ecx, 0x5a622c
call fcn.004b7f30
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [ebp - 0x298]
push edx
mov ecx, 0x584f80
call fcn.00413820
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x5c8], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004d61e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004d61e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5bc]
call fcn.00444c30
mov eax, dword [ebp - 0x5c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00504a55
mov esp, ebp
pop ebp
ret 0x14