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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfc98
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x509dd8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov byte [esi + 0x30], 0
lea eax, [esi + 0x30]
mov dword [esi + 0x28], 0
lea edi, [esi + 0x32]
mov dword [ebp - 0x28], eax
lea eax, [esi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov word [eax], cx
lea eax, [esi + 0x18]
mov dword [eax + 4], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
mov word [eax], cx
mov byte [edi], cl
mov eax, dword [esi]
mov dword [esi + 4], ecx
mov word [eax], cx
lea eax, [esi + 0xc]
mov ecx, eax
mov dword [esi + 0x34], 0xffffffff
mov dword [ebp - 0x18], eax
call fcn.00429350
push edi
mov edi, dword [ebp + 8]
push 6
push edi
push dword [ebx]
call fcn.0042bb10
test eax, eax
jne 0x42cc07
mov al, byte [esi + 0x32]
lea ecx, [esi + 0x33]
push esi
mov dword [ebp - 0x24], ecx
mov byte [ecx], al
mov ecx, ebx
push edi
call fcn.0042cd50
test eax, eax
jne 0x42cc07
cmp byte [ebx + 0xdb], al
je 0x42c99f
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push 0x41
push edi
push dword [ebx]
call fcn.0042bb10
test eax, eax
jne 0x42cc07
cmp byte [ebp + 0xb], al
je 0x42c99f
push 0x4ddde8
push eax
mov ecx, esi
call fcn.00403960
push esi
lea ecx, [esi + 0x18]
call fcn.00402f30
cmp byte [ebx + 0xdc], 0
je 0x42c9c7
lea eax, [esi + 0x30]
push eax
push 0x3f
push edi
push dword [ebx]
call fcn.0042bb10
test eax, eax
jne 0x42cc07
xor al, al
mov byte [ebp + 0xf], al
cmp byte [esi + 0x30], al
je 0x42caf6
mov ecx, dword [ebx + 8]
mov al, 1
mov byte [ebp + 0xf], al
test ecx, ecx
je 0x42caf6
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x14]
push edx
push edi
push ecx
call dword [eax + 0xc]
test eax, eax
jne 0x42cc07
cmp dword [ebp - 0x10], 1
jne 0x42caf3
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebx]
push edx
push 4
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jne 0x42cac3
mov ax, word [ebp - 0x3c]
cmp ax, 8
jne 0x42ca73
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x42ca78
push eax
lea ecx, [esi + 0x24]
call fcn.00404200
mov edi, dword [ebp - 0x14]
xor al, al
mov byte [ebp + 0xf], al
mov dword [ebp + 8], edi
mov dword [esi + 0x34], edi
cmp edi, 0xffffffff
jne 0x42ca9b
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov dword [esi + 0x1c], 0
mov word [eax], cx
lea eax, [esi + 0x33]
mov byte [eax], 1
jmp 0x42cae4
test ax, ax
je 0x42ca49
lea ecx, [ebp - 0x3c]
mov edi, 0x80004005
call fcn.0040eb40
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 8
lea eax, [esi + 0x18]
mov ecx, ebx
push eax
push edi
call fcn.0042ccf0
mov edi, eax
test edi, edi
jne 0x42cac3
lea eax, [esi + 0x33]
push eax
push 6
push dword [ebp - 0x14]
push dword [ebx]
call fcn.0042bb10
mov edi, eax
test edi, edi
je 0x42cae1
lea ecx, [ebp - 0x3c]
call fcn.0040eb40
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 8
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040eb40
mov al, byte [ebp + 0xf]
cmp byte [esi + 0x31], 0
jne 0x42cb00
test al, al
je 0x42cb60
push dword [esi]
call fcn.0042c6e0
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
js 0x42cb60
cmp ecx, dword [esi + 0x1c]
jae 0x42cb21
mov eax, dword [esi + 0x18]
xor edx, edx
mov dword [esi + 0x1c], ecx
mov word [eax + ecx*2], dx
mov eax, dword [esi]
add ecx, ecx
add eax, 2
mov dword [ebp - 0x1c], ecx
add eax, ecx
lea ecx, [esi + 0x24]
push eax
call fcn.00402fa0
cmp dword [ebp + 8], 0
je 0x42cb54
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi]
movzx eax, word [ecx + eax - 2]
push eax
call fcn.00405720
test al, al
jne 0x42cb54
xor eax, eax
jmp 0x42cb59
mov eax, 1
mov byte [esi + 0x33], al
mov byte [esi + 0x30], 1
cmp byte [esi + 0x38], 0
je 0x42cbf9
lea eax, [esi + 0xc]
mov ecx, ebx
push eax
push dword [esi + 0x3c]
push edi
call fcn.0042ced0
test eax, eax
jne 0x42cc07
cmp byte [esi + 0x31], al
jne 0x42cb8d
mov al, byte [ebp + 0xf]
test al, al
je 0x42cc05
cmp dword [esi + 0x10], 0
je 0x42cc05
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov edi, dword [eax + ecx*4 - 4]
mov ebx, dword [edi]
push ebx
call fcn.0042c6e0
mov esi, eax
test esi, esi
js 0x42cbed
mov ecx, dword [ebp - 0x20]
lea edx, [ebx + 2]
lea edx, [edx + esi*2]
push edx
call fcn.00402fa0
test esi, esi
je 0x42cbd3
mov eax, dword [edi]
movzx eax, word [eax + esi*2 - 2]
push eax
call fcn.00405720
test al, al
jne 0x42cbd3
xor eax, eax
jmp 0x42cbd8
mov eax, 1
mov ecx, dword [ebp - 0x24]
push esi
mov byte [ecx], al
mov ecx, edi
mov eax, dword [ebp - 0x28]
mov byte [eax], 1
call fcn.00407550
test esi, esi
jne 0x42cc05
mov ecx, dword [ebp - 0x18]
call fcn.004053d0
jmp 0x42cc05
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
call fcn.004057c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8