Function at 0x40be40
Capabilities:
Access peb ldr_data
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
cmp dword [0x47ad60], 0
je 0x40be5a
mov eax, 1
jmp 0x40c1bd
mov eax, dword fs:[0x30]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0x1c], edx
jmp 0x40be9f
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x18], 0
je 0x40bf2f
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x78
mov dword [ebp - 0x3c], ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + eax]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0
jne 0x40bee9
jmp 0x40be8e
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0xc]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
or ecx, 0x20202020
cmp ecx, 0x6c64746e
je 0x40bf16
jmp 0x40be8e
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
jne 0x40bf2a
jmp 0x40bf2f
jmp 0x40be8e
cmp dword [ebp - 0x14], 0
jne 0x40bf3c
xor eax, eax
jmp 0x40c1bd
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x47ad64
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
cmp ecx, 0x775a
jne 0x40c01c
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040bd90
add esp, 4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*8], eax
push 0x44c964
call fcn.0041cad9
add esp, 4
mov esi, eax
push 0x44c96c
call fcn.0041cad9
add esp, 4
sub esi, eax
push 0x44c974
call fcn.0041cad9
add esp, 4
sub esi, eax
push 0x44c97c
call fcn.0041cad9
add esp, 4
sub esi, eax
mov eax, dword [ebp - 0x18]
lea ecx, [eax + esi - 1]
mov edx, dword [ebp - 0x44]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0x48]
mov eax, dword [esi + eax*4]
mov dword [edx + ecx*8 + 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x1f4
jne 0x40c01c
jmp 0x40c02b
mov edx, dword [ebp - 0x18]
sub edx, 1
mov dword [ebp - 0x18], edx
jne 0x40bf77
mov eax, dword [ebp - 0xc]
mov dword [0x47ad60], eax
mov dword [ebp - 0xc], 0
jmp 0x40c045
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [0x47ad60]
sub edx, 1
cmp dword [ebp - 0xc], edx
jae 0x40c1b8
mov dword [ebp - 4], 0
jmp 0x40c069
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [0x47ad60]
sub ecx, dword [ebp - 0xc]
sub ecx, 1
cmp dword [ebp - 4], ecx
jae 0x40c1b3
push 0x44c964
call fcn.0041cad9
add esp, 4
mov esi, eax
push 0x44c96c
call fcn.0041cad9
add esp, 4
sub esi, eax
push 0x44c974
call fcn.0041cad9
add esp, 4
sub esi, eax
push 0x44c97c
call fcn.0041cad9
add esp, 4
sub esi, eax
mov edx, dword [ebp - 4]
lea eax, [edx + esi + 1]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov ecx, dword [edx + ecx*8 + 4]
cmp ecx, dword [esi + eax*8 + 4]
jbe 0x40c1ae
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*8 + 4]
mov dword [ebp - 0x4c], ecx
push 0x44c964
call fcn.0041cad9
add esp, 4
mov esi, eax
push 0x44c96c
call fcn.0041cad9
add esp, 4
sub esi, eax
push 0x44c974
call fcn.0041cad9
add esp, 4
sub esi, eax
push 0x44c97c
call fcn.0041cad9
add esp, 4
sub esi, eax
add esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*8 + 8]
mov dword [edx + esi*8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov eax, dword [esi + eax*8 + 0xc]
mov dword [edx + ecx*8 + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x50]
mov dword [edx + ecx*8 + 8], eax
push 0x44c964
call fcn.0041cad9
add esp, 4
mov esi, eax
push 0x44c96c
call fcn.0041cad9
add esp, 4
sub esi, eax
push 0x44c974
call fcn.0041cad9
add esp, 4
sub esi, eax
push 0x44c97c
call fcn.0041cad9
add esp, 4
sub esi, eax
mov ecx, dword [ebp - 4]
lea edx, [ecx + esi + 1]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + edx*8 + 4], ecx
jmp 0x40c060
jmp 0x40c03c
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret