Function at 0x4f43ec
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x37
push 0
push 0
dec ecx
jne 0x4f43f5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 0x14]
lea ebx, [ebp - 0x68]
xor eax, eax
push ebp
push 0x4f475b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x18]
mov eax, edx
test eax, eax
je 0x4f4436
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4f4472
mov eax, edx
test eax, eax
je 0x4f4445
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
lea eax, [ebp - 8]
xor ecx, ecx
call fcn.00405f44
lea eax, [ebp - 8]
call fcn.00405d48
mov edx, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4f4469
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
xchg ecx, eax
call fcn.004032b4
mov edx, dword [ebp - 0x1c]
mov eax, edx
test eax, eax
je 0x4f4480
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4f44bc
mov eax, edx
test eax, eax
je 0x4f448f
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
lea eax, [ebp - 0xc]
xor ecx, ecx
call fcn.00405f44
lea eax, [ebp - 0xc]
call fcn.00405d48
mov edx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4f44b3
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
xchg ecx, eax
call fcn.004032b4
mov edx, dword [ebp - 0x20]
mov eax, edx
test eax, eax
je 0x4f44ca
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4f4506
mov eax, edx
test eax, eax
je 0x4f44d9
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
lea eax, [ebp - 0x10]
xor ecx, ecx
call fcn.00405f44
lea eax, [ebp - 0x10]
call fcn.00405d48
mov edx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4f44fd
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
xchg ecx, eax
call fcn.004032b4
mov eax, esi
test eax, eax
je 0x4f4511
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4f454c
mov eax, esi
test eax, eax
je 0x4f4520
sub eax, 4
mov eax, dword [eax]
mov edx, eax
add edx, edx
lea eax, [ebp - 0x14]
xor ecx, ecx
call fcn.00405f44
lea eax, [ebp - 0x14]
call fcn.00405d48
mov edx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4f4544
sub eax, 4
mov eax, dword [eax]
mov ecx, esi
xchg ecx, eax
call fcn.004032b4
mov eax, ebx
xor ecx, ecx
mov edx, 0x40
call fcn.00403ab4
mov edx, ebx
mov eax, 0x4f476c
mov ecx, 8
call fcn.004032b4
mov dword [ebx + 8], 3
mov eax, dword [ebp - 8]
test eax, eax
je 0x4f457e
sub eax, 4
mov eax, dword [eax]
mov edx, eax
mov word [ebx + 0x1c], dx
mov word [ebx + 0x1e], dx
mov dword [ebx + 0x20], 0x40
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4f459b
sub eax, 4
mov eax, dword [eax]
mov edx, eax
mov word [ebx + 0x24], dx
mov word [ebx + 0x26], dx
movzx eax, word [ebx + 0x1c]
add eax, dword [ebx + 0x20]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4f45bb
sub eax, 4
mov eax, dword [eax]
mov edx, eax
mov word [ebx + 0x2c], dx
mov word [ebx + 0x2e], dx
movzx eax, word [ebx + 0x24]
add eax, dword [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov ax, 0x18
mov word [ebx + 0xc], ax
mov word [ebx + 0xe], ax
movzx eax, word [ebx + 0x2c]
add eax, dword [ebx + 0x30]
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], 0x18
movzx eax, word [ebx + 0xc]
mov word [ebx + 0x16], ax
movzx eax, word [ebx + 0xc]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
mov word [ebx + 0x34], 0
mov word [ebx + 0x36], 0
xor eax, eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0x8205
lea eax, [ebp - 0x1b0]
mov edx, esi
mov ecx, 0
call fcn.00406624
mov eax, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x1ac]
lea edx, [ebp - 0x28]
call fcn.004f3da0
mov edx, dword [ebp - 0x1ac]
lea eax, [ebp - 0x1a8]
mov ecx, 0xff
call fcn.00405984
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x87]
mov cl, 0x1e
call fcn.00403a28
lea ecx, [ebp - 0x1b4]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
call fcn.004f3f74
mov edx, dword [ebp - 0x1b4]
lea eax, [ebp - 0x1a8]
mov ecx, 0xff
call fcn.00405984
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0xa6]
mov cl, 0x1e
call fcn.00403a28
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x40
call fcn.00405f44
lea eax, [ebp - 4]
call fcn.00405d48
mov edx, eax
mov eax, ebx
mov ecx, 0x40
call fcn.004032b4
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
lea eax, [ebp - 0x1b8]
lea edx, [ebp - 0x87]
mov ecx, 0
call fcn.0040593c
push dword [ebp - 0x1b8]
lea eax, [ebp - 0x1bc]
lea edx, [ebp - 0xa6]
mov ecx, 0
call fcn.0040593c
push dword [ebp - 0x1bc]
lea eax, [ebp - 4]
mov edx, 6
call fcn.00405b24
lea edx, [ebp - 0x1c0]
mov eax, dword [ebp - 4]
call fcn.004f3a1c
mov edx, dword [ebp - 0x1c0]
mov eax, dword [ebp + 8]
call fcn.004065fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4762
lea eax, [ebp - 0x1c0]
mov edx, 6
call fcn.00405638
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00405638
ret