Function at 0x44f390
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov dword [ebx + 0x10], 0x100000
mov dword [ebx + 0xdc], 0
mov ecx, dword [eax]
push edi
mov dword [ebx + 0x98], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebx + 0xd8]
mov ecx, dword [esp + 0x58]
sub ecx, eax
mov dword [esp + 0x5c], eax
add ecx, 4
mov eax, 1
shl eax, cl
mov edi, dword [esp + 0x4c]
mov dword [ebx + 0x9c], edx
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
lea esi, [eax - 1]
neg eax
mov dword [esp + 0x64], eax
mov eax, edi
shl eax, 4
sub ecx, eax
shl ecx, 1
cmp esi, ecx
jge 0x44f401
mov ecx, esi
mov dword [ebx], ecx
mov ecx, dword [esp + 0x50]
mov eax, ecx
shl eax, 4
sub edx, eax
shl edx, 1
cmp esi, edx
jl 0x44f416
mov esi, edx
or edx, reloc.KERNEL32.dll_GetProcessHeap
mov dword [ebx + 8], esi
mov esi, dword [esp + 0x64]
sub edx, edi
shl edx, 5
cmp esi, edx
jle 0x44f42b
mov edx, esi
mov dword [ebx + 4], edx
mov edx, 0xfffffff0
sub edx, eax
shl edx, 1
cmp esi, edx
jle 0x44f43d
mov edx, esi
mov eax, dword [ebx + 0x98]
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x5c]
mov ebx, dword [ebx + 0x9c]
test edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
je 0x44f488
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
cdq
sub eax, edx
sar eax, 1
jmp 0x44f48c
mov eax, dword [esp + 0x78]
mov edx, dword [ebp + 0x10]
lea ebp, [edi - 1]
mov esi, edx
lea ebx, [edi + 1]
imul esi, ecx
add esi, ebp
dec ecx
imul ecx, edx
add edi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x64], edi
lea edi, [ecx + ebp]
mov dword [esp + 0x5c], edi
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x74]
add ecx, ebx
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x7c]
cmp ecx, edi
mov ecx, dword [esp + 0x60]
jl 0x44f51e
cmp ebx, edx
jge 0x44f51e
lea eax, [edx + edx*2]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
shl eax, 3
mov ebx, eax
mov eax, ecx
sub eax, ebx
mov ebx, dword [esp + 0x6c]
add eax, 0x1e8
cmp ebx, 3
jne 0x44f506
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
xor ebx, ebx
jmp 0x44f528
mov ebx, dword [eax + reloc.KERNEL32.dll_GetProcessHeap]
mov eax, dword [eax + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
xor ebx, ebx
jmp 0x44f528
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x64], edi
jl 0x44f572
lea eax, [edx + edx*2]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
shl eax, 3
mov ebx, eax
mov eax, ecx
sub eax, ebx
mov ebx, dword [esp + 0x6c]
cmp ebx, 3
jne 0x44f55a
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
xor ebx, ebx
jmp 0x44f57a
mov ebx, dword [eax + reloc.KERNEL32.dll_GetProcessHeap]
mov eax, dword [eax + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
xor ebx, ebx
jmp 0x44f57a
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
cmp esi, edi
jl 0x44f5af
cmp ebp, ebx
jl 0x44f5af
cmp dword [esp + 0x6c], 3
jne 0x44f59f
mov eax, dword [ecx - reloc.KERNEL32.dll_GetProcessHeap]
mov esi, dword [ecx - reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
jmp 0x44f5b7
mov eax, dword [ecx - 0x54]
mov esi, dword [ecx - 0x50]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
jmp 0x44f5b7
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [esp + 0x5c], edi
jl 0x44f5ff
cmp ebp, ebx
jl 0x44f5ff
lea eax, [edx + edx*2 + 3]
lea eax, [eax + eax*4]
lea edx, [edx + eax*4 + 1]
mov eax, dword [esp + 0x6c]
shl edx, 3
sub ecx, edx
cmp eax, 3
jne 0x44f5e9
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jmp 0x44f607
mov eax, dword [ecx + reloc.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [ecx + reloc.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
jmp 0x44f607
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x70]
xor esi, esi
lea edi, [esp + 0x10]
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x24], ebx
xor ecx, ecx
test esi, esi
jbe 0x44f637
mov edx, dword [edi]
lea eax, [esp + 0x14]
cmp edx, dword [eax - 4]
jne 0x44f62f
mov ebx, dword [edi + 4]
cmp ebx, dword [eax]
je 0x44f648
inc ecx
add eax, 8
cmp ecx, esi
jb 0x44f623
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push esi
push ebp
push eax
push ecx
call fcn.0044e800
add esp, 0x10
inc esi
add edi, 8
cmp esi, 7
jl 0x44f617
cmp dword [ebp + 0x10], reloc.KERNEL32.dll_GetProcessHeap
jle 0x44f700
mov esi, dword [ebp + 0x84]
mov edi, 0xff
lea edx, [esp + 0x10]
mov dword [esp + 0x6c], 7
mov ebx, dword [esp + esi*8 + 0x10]
mov eax, dword [edx]
cmp ebx, eax
jne 0x44f6bd
mov eax, dword [edx + 4]
mov ecx, dword [esp + esi*8 + 0x14]
lea ebp, [eax + 2]
cmp ecx, ebp
jne 0x44f6b1
and edi, 0xfffffffb
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
add edx, 8
dec eax
mov dword [esp + 0x6c], eax
jne 0x44f679
mov al, byte [esp + 0x54]
test al, 4
je 0x44f6de
mov eax, fcn.00446ff0
jmp 0x44f6ec
add eax, 0xfffffffe
cmp ecx, eax
jne 0x44f690
and edi, 0xfffffff7
jmp 0x44f690
mov ecx, dword [esp + esi*8 + 0x14]
cmp ecx, dword [edx + 4]
jne 0x44f694
lea ecx, [eax + 2]
cmp ebx, ecx
jne 0x44f6d2
and edi, 0xfffffffe
jmp 0x44f694
add eax, 0xfffffffe
cmp ebx, eax
jne 0x44f694
and edi, 0xfffffffd
jmp 0x44f694
test al, 1
mov eax, 0x446d50
jne 0x44f6ec
mov eax, fcn.004470f0
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x24]
push fcn.0044e800
push edi
push ebp
push edx
push ecx
call eax
add esp, 0x14
mov ecx, dword [esp + 0x68]
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov edx, dword [ecx]
pop ebp
cmp eax, edx
pop ebx
jge 0x44f713
mov dword [ecx], eax
add esp, 0x38
ret