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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x174
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
cmp edi, 0x12
jle 0x44d22c
mov edi, 0x12
mov esi, dword [ebp + 8]
mov ecx, dword [esi*4 + 0x902a38]
xor ebx, ebx
cmp ecx, ebx
je 0x44d549
mov eax, dword [ebp + 0xc]
mov eax, dword [eax*4 + 0x902a38]
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x44d549
cmp edi, ebx
je 0x44d4e6
cmp edi, 0x12
je 0x44d4e2
push 0x7c
lea ecx, [esp + 0x104]
push ebx
push ecx
call fcn.00487bc0
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push ebx
lea ecx, [esp + 0x108]
push ecx
mov dword [esp + 0x10c], 0x7c
mov edx, dword [eax]
mov edx, dword [edx + 0x64]
push ebx
push eax
call edx
test eax, eax
jne 0x44d549
mov ecx, 0x1c
mov dword [esp + 0x64], ecx
mov dword [esp + 0x80], ecx
mov eax, 0x28
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x124]
lea ecx, [esi + esi*2]
mov dword [esp + 0x28], eax
add ecx, ecx
mov eax, dword [ecx + ecx + 0x7ec6e0]
add ecx, ecx
mov edx, 0x14
mov dword [esp + 0x5c], edx
mov dword [esp + 0x88], edx
mov ebx, 0xc
cdq
mov dword [esp + 0x54], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x50], 8
mov dword [esp + 0x58], 0x10
mov dword [esp + 0x60], 0x18
mov dword [esp + 0x68], 0x20
mov dword [esp + 0x70], 0x30
mov dword [esp + 0x78], 0x24
mov dword [esp + 0x7c], 0x20
mov dword [esp + 0x84], 0x18
mov dword [esp + 0x8c], 0x10
mov dword [esp + 0x94], 8
mov esi, dword [esp + edi*4 + 0x50]
idiv esi
mov ebx, eax
mov eax, dword [ecx + 0x7ec6dc]
mov edi, edx
cdq
idiv esi
mov dword [esp + 0x10], eax
test edi, edi
je 0x44d370
inc ebx
test edx, edx
je 0x44d378
inc dword [esp + 0x10]
test ebx, ebx
jle 0x44d4bf
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebx
cmp dword [esp + 0x10], 0
jle 0x44d4a0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov edi, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
jmp 0x44d3b7
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
add ecx, esi
cmp edi, 0x500
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
jle 0x44d3d9
mov dword [esp + 0x38], 0x500
cmp ecx, 0x2d0
jle 0x44d3e9
mov dword [esp + 0x3c], 0x2d0
mov eax, dword [0x904a44]
cmp eax, 0x10
je 0x44d417
cmp eax, 0x18
je 0x44d409
cmp eax, 0x20
jne 0x44d422
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
jmp 0x44d422
movzx eax, byte [edx + 2]
movzx ecx, word [edx]
shl eax, 0x10
or eax, ecx
jmp 0x44d41e
mov edx, dword [esp + 0x2c]
movzx eax, word [edx]
mov dword [esp + 0x20], eax
push 0x64
lea ecx, [esp + 0x9c]
push 0
push ecx
call fcn.00487bc0
mov edx, dword [esp + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x902a38]
add esp, 0xc
mov dword [esp + 0xe8], edx
lea edx, [esp + 0x98]
push edx
push 0x1000400
push 0
push 0
lea edx, [esp + 0x40]
mov dword [esp + 0xa8], 0x64
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov ecx, dword [esp + 0x14]
lea eax, [esi*4]
add dword [esp + 0x18], eax
lea eax, [esi + esi*2]
add dword [esp + 0x1c], eax
lea eax, [esi + esi]
add dword [esp + 0x2c], eax
add ebx, esi
add edi, esi
sub dword [esp + 0x24], 1
jne 0x44d3b3
mov edx, esi
imul edx, dword [esp + 0x110]
add dword [esp + 0x28], edx
add ecx, esi
sub dword [esp + 0xc], 1
mov dword [esp + 0x14], ecx
jne 0x44d38a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax*4 + 0x902a38]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x80]
push 0
push eax
call edx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, eax
jmp 0x44d4f0
mov eax, dword [ebp + 0x10]
mov edi, dword [eax*4 + 0x902a38]
lea eax, [esi + esi*2]
add eax, eax
mov edx, dword [eax + eax + 0x7ec6dc]
add eax, eax
mov eax, dword [eax + 0x7ec6e0]
push ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
push 0x1000000
lea eax, [esp + 0x48]
push eax
push edi
lea eax, [esp + 0x40]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x48], edx
mov dword [esp + 0x58], edx
mov edx, dword [ecx]
push eax
push ecx
mov ecx, dword [edx + 0x14]
call ecx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret