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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529bba
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x578750]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x560], ecx
push 0
push 0
push 6
push 0
push 0
push 1
lea ecx, [ebp - 0x554]
call fcn.004441c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x560]
add ecx, 0x88
call fcn.004021c0
lea ecx, [ebp - 0x10]
call fcn.00401b80
mov byte [ebp - 4], 1
push 0x53ffac
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push str..mdb
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x540030
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x540038
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
lea ecx, [ebp - 0x554]
call fcn.004e5de5
add eax, 0x14
mov dword [ebp - 0x564], eax
mov eax, dword [ebp - 0x564]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x564]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0xc], esi
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x30], 0x54003c
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x3c], 0x54005c
push 0x53f396
mov eax, dword [ebp - 0x560]
add eax, 0x84
push eax
call fcn.00421790
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x450204
mov edx, dword [ebp - 0x560]
add edx, 0x8c
push edx
mov ecx, dword [ebp - 0x560]
add ecx, 0x84
call fcn.00402b30
mov ecx, dword [ebp - 0x560]
add ecx, 0x84
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x2c], esi
mov eax, dword [ebp - 0x560]
add eax, 0x84
push eax
lea ecx, [ebp - 0x230]
call fcn.00413820
jmp 0x45023d
mov ecx, dword [ebp - 0x560]
add ecx, 0x84
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x2c], esi
mov ecx, dword [ebp - 0x560]
add ecx, 0x84
push ecx
lea ecx, [ebp - 0x230]
call fcn.00413820
lea edx, [ebp - 0x224]
push edx
push 0x20a
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x554]
call fcn.004e6f5e
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x228], eax
je 0x4502bb
lea eax, [ebp - 0x558]
push eax
lea ecx, [ebp - 0x554]
call fcn.004e708d
mov dword [ebp - 0x568], eax
mov ecx, dword [ebp - 0x568]
mov dword [ebp - 0x56c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x56c]
push edx
mov ecx, dword [ebp - 0x560]
add ecx, 0x88
call fcn.00413820
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x558]
call fcn.004d61e0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x55c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004d61e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x554]
call fcn.00421740
mov eax, dword [ebp - 0x55c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00504a55
mov esp, ebp
pop ebp
ret