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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52747f
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, 0x170
call fcn.004021c0
lea ecx, [ebp - 0x10]
call fcn.00401b80
mov byte [ebp - 4], 1
push 0x53646c
lea ecx, [ebp - 0x10]
call fcn.00406970
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
push 0x536490
lea ecx, [ebp - 0x10]
call fcn.00401520
push 0
lea ecx, [ebp - 0x10]
call fcn.00421ab0
lea ecx, [ebp - 0x10]
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0xc], esi
push 0x536498
lea ecx, [ebp - 0x10]
call fcn.00406970
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], 0x5364a0
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x3c], 0x5364bc
push 0x5361b3
mov eax, dword [ebp - 0x560]
add eax, 0x178
push eax
call fcn.00421790
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4214d6
mov edx, dword [ebp - 0x560]
movzx eax, byte [edx + 0x17e]
test eax, eax
je 0x4214aa
mov ecx, 0x584f78
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x2c], esi
push 0x584f78
lea ecx, [ebp - 0x230]
call fcn.00413820
jmp 0x4214d4
mov ecx, 0x584f70
call fcn.004d6200
mov esi, eax
lea ecx, [ebp - 0x554]
call fcn.004e5de5
mov dword [eax + 0x2c], esi
push 0x584f70
lea ecx, [ebp - 0x230]
call fcn.00413820
jmp 0x42150f
mov ecx, dword [ebp - 0x560]
add ecx, 0x178
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, 0x178
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 0x42158d
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, 0x170
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