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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x334
mov dword [ebp - 0x1c], 0x1002e002
mov dword [ebp - 0x2e0], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], 0x18
mov eax, dword [ebp - 0x134]
mov eax, dword fs:[eax]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
add eax, 0xc
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov eax, dword [eax]
mov dword [ebp - 0x310], eax
mov eax, dword [ebp - 0x310]
cmp dword [ebp - 0x148], eax
je 0x10007d6a
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax + 0x30]
mov dword [esp], eax
call fcn.10007c00
cmp dword [ebp - 0x12c], eax
sete al
test al, al
je 0x10007d5a
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax + 0x18]
jmp 0x10007d6f
mov eax, dword [ebp - 0x310]
mov eax, dword [eax]
mov dword [ebp - 0x310], eax
jmp 0x10007d17
mov eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 8]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x314]
mov eax, dword [eax + 0x3c]
add eax, edx
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0xe8]
mov edx, dword [ebp - 0xdc]
add edx, 0xe
mov eax, dword [eax + edx*8 + 8]
add eax, ecx
mov dword [ebp - 0xec], eax
mov edx, dword [ebp - 0x314]
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 0x24]
add eax, edx
mov dword [ebp - 0xf0], eax
mov edx, dword [ebp - 0x314]
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 0x20]
add eax, edx
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0x314]
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 0x1c]
add eax, edx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xfc], 0
mov eax, dword [ebp - 0xec]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 0xfc]
jbe 0x10007f8a
mov edx, dword [ebp - 0x314]
mov eax, dword [ebp - 0xfc]
lea ecx, [eax*4]
mov eax, dword [ebp - 0xf4]
add eax, ecx
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x108]
mov dword [esp], eax
call fcn.10007c51
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x114]
cmp dword [ebp - 0x110], eax
jbe 0x10007f39
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x108]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x115], al
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x128]
jbe 0x10007f18
mov eax, dword [ebp - 0x11c]
add dword [ebp - 0x124], eax
add dword [ebp - 0x128], 1
jmp 0x10007ef5
mov edx, dword [ebp - 0x124]
movzx eax, byte [ebp - 0x115]
add eax, edx
mov dword [ebp - 0x10c], eax
add dword [ebp - 0x114], 1
jmp 0x10007ea0
mov eax, dword [ebp - 0x10c]
cmp dword [ebp - 0xe0], eax
sete al
test al, al
je 0x10007f7e
mov edx, dword [ebp - 0x314]
mov eax, dword [ebp - 0xfc]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0xf0]
add eax, ecx
movzx eax, word [eax]
movzx eax, ax
lea ecx, [eax*4]
mov eax, dword [ebp - 0xf8]
add eax, ecx
mov eax, dword [eax]
add eax, edx
jmp 0x10007f8f
add dword [ebp - 0xfc], 1
jmp 0x10007e26
mov eax, 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x24]
call eax
sub esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x64]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x318]
mov eax, dword [eax + 0x3c]
add eax, edx
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x8c]
add edx, 0xe
mov eax, dword [eax + edx*8 + 8]
add eax, ecx
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x24]
add eax, edx
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x20]
add eax, edx
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x1c]
add eax, edx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 0xac]
jbe 0x100081c6
mov edx, dword [ebp - 0x318]
mov eax, dword [ebp - 0xac]
lea ecx, [eax*4]
mov eax, dword [ebp - 0xa4]
add eax, ecx
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xb8]
mov dword [esp], eax
call fcn.10007c51
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
cmp dword [ebp - 0xc0], eax
jbe 0x10008175
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xb8]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0xc5], al
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0xd0]
cmp eax, dword [ebp - 0xd8]
jbe 0x10008154
mov eax, dword [ebp - 0xcc]
add dword [ebp - 0xd4], eax
add dword [ebp - 0xd8], 1
jmp 0x10008131
mov edx, dword [ebp - 0xd4]
movzx eax, byte [ebp - 0xc5]
add eax, edx
mov dword [ebp - 0xbc], eax
add dword [ebp - 0xc4], 1
jmp 0x100080dc
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0x90], eax
sete al
test al, al
je 0x100081ba
mov edx, dword [ebp - 0x318]
mov eax, dword [ebp - 0xac]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0xa0]
add eax, ecx
movzx eax, word [eax]
movzx eax, ax
lea ecx, [eax*4]
mov eax, dword [ebp - 0xa8]
add eax, ecx
mov eax, dword [eax]
add eax, edx
jmp 0x100081cb
add dword [ebp - 0xac], 1
jmp 0x10008062
mov eax, 0
mov dword [ebp - 0x2c], eax
mov dword [esp + 8], 0x104
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 0x7fffffff
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
add eax, edx
movzx edx, word [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x50]
cmp dx, ax
setne al
test al, al
je 0x10008237
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x28]
add eax, edx
mov word [eax], 0
sub dword [ebp - 0xc], 1
jmp 0x100081fe
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x10008272
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + edx]
mov edx, dword [ebp - 0x28]
add edx, ecx
cbw
mov word [edx], ax
add dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
jmp 0x1000823e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x1a0], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x308], ecx
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a8], eax
mov edx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x308]
mov eax, dword [eax + 0x3c]
add eax, edx
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x1ac]
mov edx, dword [ebp - 0x1a0]
add edx, 0xe
mov eax, dword [eax + edx*8 + 8]
add eax, ecx
mov dword [ebp - 0x1b0], eax
mov edx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 0x24]
add eax, edx
mov dword [ebp - 0x1b4], eax
mov edx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 0x20]
add eax, edx
mov dword [ebp - 0x1b8], eax
mov edx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 0x1c]
add eax, edx
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1c0], 0
mov eax, dword [ebp - 0x1b0]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 0x1c0]
jbe 0x1000848a
mov edx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x1c0]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x1b8]
add eax, ecx
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1a8]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1d0], 0
mov eax, dword [ebp - 0x1cc]
mov dword [esp], eax
call fcn.10007c51
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1d8], 0
mov eax, dword [ebp - 0x1d8]
cmp dword [ebp - 0x1d4], eax
jbe 0x10008439
mov edx, dword [ebp - 0x1d8]
mov eax, dword [ebp - 0x1cc]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x1d9], al
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e8], 0
mov dword [ebp - 0x1ec], 0
mov eax, dword [ebp - 0x1e4]
cmp eax, dword [ebp - 0x1ec]
jbe 0x10008418
mov eax, dword [ebp - 0x1e0]
add dword [ebp - 0x1e8], eax
add dword [ebp - 0x1ec], 1
jmp 0x100083f5
mov edx, dword [ebp - 0x1e8]
movzx eax, byte [ebp - 0x1d9]
add eax, edx
mov dword [ebp - 0x1d0], eax
add dword [ebp - 0x1d8], 1
jmp 0x100083a0
mov eax, dword [ebp - 0x1d0]
cmp dword [ebp - 0x1a4], eax
sete al
test al, al
je 0x1000847e
mov edx, dword [ebp - 0x308]
mov eax, dword [ebp - 0x1c0]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x1b4]
add eax, ecx
movzx eax, word [eax]
movzx eax, ax
lea ecx, [eax*4]
mov eax, dword [ebp - 0x1bc]
add eax, ecx
mov eax, dword [eax]
add eax, edx
jmp 0x1000848f
add dword [ebp - 0x1c0], 1
jmp 0x10008326
mov eax, 0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x58]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 0x1c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x30]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30c], ecx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], eax
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + 0x3c]
add eax, edx
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x150]
add edx, 0xe
mov eax, dword [eax + edx*8 + 8]
add eax, ecx
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 0x24]
add eax, edx
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 0x20]
add eax, edx
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 0x1c]
add eax, edx
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x170], 0
mov eax, dword [ebp - 0x160]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 0x170]
jbe 0x100086f2
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x170]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x168]
add eax, ecx
mov eax, dword [eax]
add eax, edx
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x180], 0
mov eax, dword [ebp - 0x17c]
mov dword [esp], eax
call fcn.10007c51
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x188], 0
mov eax, dword [ebp - 0x188]
cmp dword [ebp - 0x184], eax
jbe 0x100086a1
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x17c]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x189], al
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x19c], 0
mov eax, dword [ebp - 0x194]
cmp eax, dword [ebp - 0x19c]
jbe 0x10008680
mov eax, dword [ebp - 0x190]
add dword [ebp - 0x198], eax
add dword [ebp - 0x19c], 1
jmp 0x1000865d
mov edx, dword [ebp - 0x198]
movzx eax, byte [ebp - 0x189]
add eax, edx
mov dword [ebp - 0x180], eax
add dword [ebp - 0x188], 1
jmp 0x10008608
mov eax, dword [ebp - 0x180]
cmp dword [ebp - 0x154], eax
sete al
test al, al
je 0x100086e6
mov edx, dword [ebp - 0x30c]
mov eax, dword [ebp - 0x170]
lea ecx, [eax + eax]
mov eax, dword [ebp - 0x164]
add eax, ecx
movzx eax, word [eax]
movzx eax, ax
lea ecx, [eax*4]
mov eax, dword [ebp - 0x16c]
add eax, ecx
mov eax, dword [eax]
add eax, edx
jmp 0x100086f7
add dword [ebp - 0x170], 1
jmp 0x1000858e
mov eax, 0
mov dword [ebp - 0x40], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
sub esp, 8
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x10008723
mov eax, 0
jmp 0x10008fe1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x24]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x1f0], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x304], ecx
mov dword [ebp - 0x1f4], edx
mov dword [ebp - 0x1f8], eax
mov edx, dword [ebp - 0x304]
mov eax, dword [ebp - 0x304]
mov eax, dword [eax + 0x3c]
add eax, edx
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x304]
mov eax, dword [ebp - 0x1fc]
mov edx, dword [ebp - 0x1f0]
add edx, 0xe
mov eax, dword [eax + edx*8 + 8]
add eax, ecx
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x304]
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + 0x24]
add eax, edx
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x304]
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + 0x20]
add eax, edx
mov dword [ebp - 0x208], eax
mov edx, dword [ebp - 0x304]
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + 0x1c]
add eax, edx
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], 0