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

Disassembly:
sub esp, 0x68
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
mov edi, dword [esi + 0x34]
mov edx, dword [esi + 0x5c]
mov eax, edi
cmp edx, eax
jge 0x440e30
mov ecx, 1
mov eax, edx
mov esi, dword [esi + 0x84]
cmp esi, eax
jge 0x440e41
mov ecx, 2
mov eax, esi
mov ebx, dword [0x608798]
cmp eax, ebx
jge 0x4411c1
cmp edx, edi
mov dword [esp + 0x10], edi
jle 0x440e5b
mov dword [esp + 0x10], edx
cmp esi, dword [esp + 0x10]
jle 0x440e65
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x10]
test edx, edx
jl 0x4411c1
cmp edx, ebx
jle 0x440e79
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x7c]
mov ebp, eax
or eax, 0xffffffff
lea edi, [ecx + ecx*4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x38], ecx
lea edx, [eax + 0x100]
and eax, 0x3ff
and edx, 0x3ff
mov eax, dword [eax*4 + 0x4ca918]
mov edx, dword [edx*4 + 0x4ca918]
mov dword [esp + 0x4c], eax
shl edi, 3
mov dword [esp + 0x48], edx
mov ecx, edi
lea ebx, [esi + edi + 0x48]
lea edx, [esi + edi + 0x2c]
mov dword [esp + 0x20], ebx
lea ebx, [esi + edi + 0x44]
lea eax, [esi + edi + 0x34]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x440efe
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
cmp ebp, dword [esp + 0x58]
jle 0x440fcd
mov ebx, dword [esp + 0x14]
mov edx, 0x28
sub ebx, edx
mov eax, ecx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x18]
sub ebx, edx
sub ecx, edx
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
sub ebx, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x20]
sub ebx, edx
test ecx, ecx
mov dword [esp + 0x20], ebx
jge 0x440f74
mov ebx, dword [esp + 0x14]
mov edx, 0x78
add ecx, edx
add ebx, edx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x18]
add ecx, edx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
add ebx, edx
add ecx, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + eax + 0x2c]
mov ebx, dword [esi + eax + 0x44]
mov eax, dword [esi + eax + 0x48]
mov ecx, dword [ecx]
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], ecx
sub ecx, ebp
test ecx, ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], eax
jle 0x440fcd
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
sub eax, edx
cdq
idiv ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x68], eax
mov eax, dword [edx]
sub eax, ebx
cdq
idiv ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x70], eax
cmp ebp, dword [esp + 0x5c]
jle 0x441049
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
add edx, 0x28
mov eax, edi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x28]
inc ecx
add edi, 0x28
add edx, 0x28
cmp ecx, 3
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], edi
mov dword [esp + 0x28], edx
jl 0x441022
sub ecx, 3
mov dword [esp + 0x38], ecx
mov ecx, 0x78
sub edi, ecx
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x24]
sub edi, ecx
sub edx, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + eax + 0x2c]
mov dword [esp + 0x54], edx
mov ecx, dword [ecx]
mov dword [esp + 0x5c], ecx
sub ecx, ebp
test ecx, ecx
jle 0x441049
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x74], eax
test ebp, ebp
jl 0x441180
mov ecx, dword [esp + 0x50]
mov eax, dword [0x60879c]
sar ecx, 0x10
cmp ecx, eax
jge 0x441180
mov eax, dword [esp + 0x54]
sar eax, 0x10
sub eax, ecx
test eax, eax
jle 0x441180
mov edi, dword [esp + 0x34]
lea edx, [eax + ecx]
cmp edx, dword [0x60879c]
mov esi, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
jl 0x441096
mov eax, dword [0x60879c]
sub eax, ecx
test ecx, ecx
jge 0x4410c4
mov edx, dword [esp + 0x48]
mov esi, ebx
imul edx, ecx
sub esi, edx
mov edx, dword [esp + 0x4c]
imul edx, ecx
mov edi, dword [esp + 0x34]
mov dword [esp + 0x2c], esi
sub edi, edx
add eax, ecx
mov dword [esp + 0x30], edi
js 0x44117c
xor ecx, ecx
mov edx, dword [esp + 0x7c]
mov ebx, dword [edx + 0x24]
mov edx, dword [0x608764]
cmp edx, 0x10
mov dword [esp + 0x60], ebx
mov edx, ebp
jne 0x44113a
imul edx, dword [0x6087a0]
mov ebx, dword [0x6087a4]
add ebx, edx
lea ecx, [ebx + ecx*2]
mov ebx, dword [esp + 0x60]
xor edx, edx
mov dh, byte [esp + 0x32]
mov dl, byte [esp + 0x2e]
mov dl, byte [edx + ebx]
test dl, dl
mov byte [esp + 0x64], dl
je 0x44111c
mov edx, dword [esp + 0x64]
and edx, 0xff
mov dx, word [edx*2 + 0x5a4540]
mov word [ecx], dx
mov edx, dword [esp + 0x48]
add ecx, 2
add esi, edx
mov edx, dword [esp + 0x4c]
add edi, edx
dec eax
test eax, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
jg 0x4410f2
jmp 0x441178
imul edx, dword [0x6087a0]
add edx, ecx
mov ecx, dword [0x6087a4]
add edx, ecx
xor ecx, ecx
mov ch, byte [esp + 0x32]
mov cl, byte [esp + 0x2e]
mov cl, byte [ecx + ebx]
test cl, cl
je 0x44115e
mov byte [edx], cl
mov ecx, dword [esp + 0x48]
inc edx
add esi, ecx
mov ecx, dword [esp + 0x4c]
add edi, ecx
dec eax
test eax, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
jg 0x44114b
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x34]
add ecx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x74]
add ebx, eax
mov eax, dword [esp + 0x70]
add edi, eax
mov eax, dword [esp + 0x10]
add edx, ecx
inc ebp
cmp ebp, eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], edx
jl 0x440ef6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret