Function at 0x40e5b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a24ba
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x60fec0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040d820
lea eax, [ebx + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.0040d820
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
mov dword [ebp + 8], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.004384f8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00409cf0
lea eax, [ebx + 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x38]
call fcn.0040d820
lea eax, [ebx + 0x50]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x50]
call fcn.0040d820
mov eax, dword [ebx + 0x68]
lea ecx, [edi + 0x6c]
mov dword [edi + 0x68], eax
lea eax, [ebx + 0x6c]
push eax
mov byte [ebp - 4], 5
call fcn.0040d820
mov eax, dword [ebx + 0x84]
lea ecx, [edi + 0x88]
mov dword [edi + 0x84], eax
lea eax, [ebx + 0x88]
push eax
mov byte [ebp - 4], 6
call fcn.0040d820
lea eax, [ebx + 0xa0]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 0xa0]
call fcn.0040d820
lea esi, [edi + 0xb8]
mov byte [ebp - 4], 8
mov dword [ebp + 8], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.004384f8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [ebx + 0xb8]
mov byte [ebp - 4], 9
push eax
mov ecx, esi
call fcn.00409cf0
lea esi, [edi + 0xc0]
mov byte [ebp - 4], 0xa
mov dword [ebp + 8], esi
push 0x88
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.004384f8
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [ebx + 0xc0]
mov byte [ebp - 4], 0xb
push eax
mov ecx, esi
call fcn.00409c70
lea esi, [edi + 0xc8]
mov byte [ebp - 4], 0xc
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebx + 0xcc]
sub eax, dword [ebx + 0xc8]
sar eax, 3
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], eax
test eax, eax
je 0x40e7ca
cmp eax, 0x1fffffff
ja 0x40e8be
push eax
mov ecx, esi
call fcn.00419b80
mov ecx, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [eax + ecx*8]
mov dword [esi + 8], eax
mov edi, dword [esi]
mov esi, dword [ebx + 0xcc]
mov eax, dword [ebx + 0xc8]
sub esi, eax
push esi
push eax
push edi
call fcn.00577c20
mov ecx, dword [ebp - 0x10]
add esp, 0xc
sar esi, 3
lea eax, [edi + esi*8]
mov edi, dword [ebp - 0x18]
mov dword [ecx + 4], eax
lea eax, [ebx + 0xd4]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [edi + 0xd4]
call fcn.0040dcb0
lea esi, [edi + 0x110]
mov dword [ebp + 8], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebx + 0x134]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x40e806
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
lea esi, [edi + 0x138]
mov dword [ebp + 8], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebx + 0x15c]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x40e82c
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
lea esi, [edi + 0x160]
mov dword [ebp + 8], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebx + 0x184]
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x40e852
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 0x188]
lea esi, [edi + 0x190]
mov dword [edi + 0x188], eax
mov eax, dword [ebx + 0x18c]
mov dword [edi + 0x18c], eax
mov dword [ebp + 8], esi
mov dword [esi + 0x24], 0
mov ecx, dword [ebx + 0x1b4]
mov byte [ebp - 4], 0x15
test ecx, ecx
je 0x40e890
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esi + 0x24], eax
mov al, byte [ebx + 0x1b8]
mov byte [edi + 0x1b8], al
mov eax, dword [ebx + 0x1bc]
mov dword [edi + 0x1bc], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00419aa0
int3