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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b04d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100df0c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 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 + 0x18]
mov dword [ebp - 0x28], eax
lea ebx, [esi + 0x32]
lea eax, [esi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
mov word [eax], cx
mov eax, dword [edi]
mov dword [edi + 4], ecx
mov word [eax], cx
mov byte [ebx], 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 - 0x2c], eax
call fcn.10018a60
mov ecx, dword [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
mov ecx, dword [ecx]
call fcn.1007dd00
test eax, eax
jne 0x1007eb58
mov al, byte [esi + 0x32]
lea ecx, [esi + 0x33]
push esi
mov dword [ebp - 0x24], ecx
mov byte [ecx], al
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.1007ed80
test eax, eax
jne 0x1007eb58
push esi
mov ecx, edi
call fcn.10019fb0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x14], 0
je 0x1007e916
lea ecx, [esi + 0x30]
mov edx, ebx
push ecx
mov ecx, dword [eax]
call fcn.1007dca0
test eax, eax
jne 0x1007eb58
mov eax, dword [ebp - 0x10]
xor cl, cl
mov byte [ebp + 0xf], cl
cmp byte [esi + 0x30], cl
je 0x1007ea48
mov edx, dword [eax + 8]
mov cl, 1
mov byte [ebp + 0xf], cl
test edx, edx
je 0x1007ea48
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
mov eax, dword [edx]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push edx
call dword [eax + 0xc]
test eax, eax
jne 0x1007eb58
cmp dword [ebp + 8], 1
jne 0x1007ea45
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
push edx
push 4
push ebx
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edi, eax
test edi, edi
jne 0x1007ea15
mov ax, word [ebp - 0x3c]
cmp ax, 8
jne 0x1007e9c3
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1007e9c8
push eax
lea ecx, [esi + 0x24]
call fcn.1001b1a0
mov ebx, dword [ebp - 0x14]
xor al, al
mov byte [ebp + 0xf], al
mov dword [esi + 0x34], ebx
cmp ebx, 0xffffffff
jne 0x1007e9eb
mov eax, dword [esi + 0x18]
lea edi, [esi + 0x18]
mov dword [edi + 4], 0
xor ecx, ecx
mov word [eax], cx
mov byte [esi + 0x33], 1
jmp 0x1007ea36
test ax, ax
je 0x1007e99b
lea ecx, [ebp - 0x3c]
mov edi, 0x80004005
call fcn.10024ae0
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 ecx, dword [ebp - 0x10]
lea eax, [esi + 0x18]
push eax
push ebx
call fcn.1007ed80
mov edi, eax
test edi, edi
jne 0x1007ea15
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x33]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.1007dd00
mov edi, eax
test edi, edi
je 0x1007ea33
lea ecx, [ebp - 0x3c]
call fcn.10024ae0
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 edi, [esi + 0x18]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.10024ae0
mov cl, byte [ebp + 0xf]
cmp byte [esi + 0x31], 0
jne 0x1007ea52
test cl, cl
je 0x1007eab1
mov ecx, dword [esi]
call fcn.1007e6f0
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
js 0x1007eab1
cmp ecx, dword [edi + 4]
jae 0x1007ea72
mov eax, dword [edi]
xor edx, edx
mov dword [edi + 4], 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.1001a0b0
cmp dword [ebp - 0x18], 0
je 0x1007eaa5
mov eax, dword [esi]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + eax - 2]
cmp eax, 0x5c
je 0x1007eaa5
cmp eax, 0x2f
je 0x1007eaa5
xor eax, eax
jmp 0x1007eaaa
mov eax, 1
mov byte [esi + 0x33], al
mov byte [esi + 0x30], 1
cmp byte [esi + 0x38], 0
je 0x1007eb4c
mov ecx, dword [ebp - 0x10]
lea edx, [esi + 0xc]
push edx
push dword [esi + 0x3c]
push ebx
call fcn.1007ef50
test eax, eax
jne 0x1007eb58
cmp byte [esi + 0x31], al
jne 0x1007eadf
mov al, byte [ebp + 0xf]
test al, al
je 0x1007eb56
cmp dword [esi + 0x10], 0
je 0x1007eb56
mov ecx, dword [esi + 0x10]
lea ebx, [esi + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax + ecx*4 - 4]
mov ecx, dword [edi]
call fcn.1007e6f0
mov esi, eax
test esi, esi
js 0x1007eb41
mov edx, dword [edi]
mov ecx, dword [ebp - 0x20]
add edx, 2
lea edx, [edx + esi*2]
push edx
call fcn.1001a0b0
test esi, esi
je 0x1007eb27
mov eax, dword [edi]
mov cx, word [eax + esi*2 - 2]
call fcn.1001e310
test al, al
jne 0x1007eb27
xor eax, eax
jmp 0x1007eb2c
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.1001e780
test esi, esi
jne 0x1007eb56
mov ecx, ebx
call fcn.1001dda0
jmp 0x1007eb56
mov edx, dword [ebp - 0x2c]
mov ecx, edi
call fcn.1001e4d0
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