Function at 0x401c00
Capabilities:
Access peb ldr_data
Get common file path
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4261c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov eax, dword [0x4320dc]
push ebp
push esi
push edi
mov dword [esp + 0x138], eax
mov dword [esp + 0x30], 0
xor eax, eax
mov byte [esp + 0x34], 0
mov ecx, 0x40
lea edi, [esp + 0x35]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call fcn.0040d253
imul eax, eax, 0x32
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x427670]
call fcn.0040d2cc
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00403301
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 1
call fcn.00401b50
push 0x427664
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x150], 2
call fcn.00401a30
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 3
call fcn.00403394
mov edi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x144], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call fcn.0041afba
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
test edi, edi
mov byte [esp + 0x144], 4
je 0x401dd4
lea ecx, [esp + 0x18]
call fcn.004030e2
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004032c8
test eax, eax
jne 0x401dcc
mov eax, dword [esp + 0x18]
push 2
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
jne 0x401dcc
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x401dcc
mov eax, dword [esp + 0x18]
push 0x100
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
jne 0x401dcc
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
je 0x401dc8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.004035bc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], 5
call fcn.00401960
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x144], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401dc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x10]
dec ebp
test ebp, ebp
je 0x401dd4
test edi, edi
jne 0x401d16
push 1
push 0x427660
lea ecx, [esp + 0x14]
call fcn.00401860
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.00401860
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.004014b0
mov edi, dword [esp + 0x150]
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [esi - 0x10]
mov dword [esp + 0x30], 1
mov byte [esp + 0x144], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x144], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x144], 0
call fcn.00403325
mov ecx, dword [esp + 0x13c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x130]
pop ebp
call fcn.0040c9aa
add esp, 0x13c
ret 4