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

Disassembly:
sub esp, 0x40
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
xor ebp, ebp
push ebx
mov dword [ebx + 0x38], ebp
call fcn.004422f0
mov eax, dword [ebx + 0x5c]
add esp, 4
cmp eax, ebp
mov edi, 2
je 0x441a91
call fcn.0040aec0
sub eax, dword [ebx + 0x60]
cdq
mov esi, eax
mov eax, dword [ebx + 0x64]
xor esi, edx
sub esi, edx
cmp eax, esi
jg 0x441a91
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + eax*8 + 0x74]
mov dword [esp + 0x54], ecx
cmp dword [ebx + 0x70], ebp
je 0x4419cd
xor ecx, ecx
mov edx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x68]
sub esi, edx
inc eax
mov dword [ebx + 0x68], eax
cmp eax, dword [ebx + 0x6c]
jl 0x4419ac
mov dword [ebx + 0x68], ebp
mov dword [ebx + 0x5c], edi
mov edx, dword [ebx + 0x68]
mov eax, dword [ebx + edx*8 + 0x78]
cmp eax, ebp
jl 0x4419c6
cmp esi, eax
mov dword [ebx + 0x64], eax
jl 0x4419f4
inc ecx
cmp ecx, 0x64
jl 0x441995
jmp 0x4419f4
mov dword [ebx + 0x5c], ebp
xor esi, esi
jmp 0x4419f4
xor esi, esi
inc eax
mov dword [ebx + 0x68], eax
cmp eax, dword [ebx + 0x6c]
jl 0x4419de
mov dword [ebx + 0x68], ebp
mov dword [ebx + 0x5c], edi
mov eax, dword [ebx + 0x68]
cmp dword [ebx + eax*8 + 0x78], ebp
jge 0x4419ea
mov dword [ebx + 0x5c], ebp
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx + ecx*8 + 0x78]
mov dword [ebx + 0x64], edx
call fcn.0040aec0
sub eax, esi
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x398], eax
mov esi, 1
mov dword [ebx + 0x39c], esi
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + eax*8 + 0x74]
cmp ecx, 0xfffffffe
jne 0x441a26
mov edx, dword [ebx + 0x24]
mov dword [ebx + 4], edx
mov eax, dword [ebx + 0x28]
jmp 0x441a4a
mov edx, dword [ebx]
mov eax, dword [edx]
mov edi, dword [ebx + 0xc]
cdq
idiv edi
cmp eax, esi
jl 0x441a36
mov esi, eax
mov eax, ecx
cdq
idiv esi
mov eax, ecx
imul edx, edi
mov dword [ebx + 4], edx
cdq
idiv esi
imul eax, dword [ebx + 0x10]
mov dword [ebx + 8], eax
cmp dword [esp + 0x54], ecx
je 0x441a91
cmp dword [ebx + 0x38], ebp
mov dword [ebx + 0x3b4], ebp
jne 0x441a91
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0x38], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [ebx]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
mov dword [esp + 0x34], eax
call fcn.00441030
add esp, 8
cmp dword [ebx + 0x394], ebp
je 0x441cc1
call fcn.0040aec0
mov ebp, dword [ebx + 0x398]
mov ecx, dword [ebx + 0x39c]
sub eax, ebp
cdq
xor eax, edx
sub eax, edx
test ecx, ecx
jne 0x441ac2
cmp eax, 0x32
jl 0x441cc1
call fcn.0040aec0
mov dword [ebx + 0x398], eax
mov ebp, dword [ebx + 0x39c]
xor edi, edi
cmp ebp, edi
je 0x441b42
mov eax, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x6c]
inc eax
cmp eax, ecx
jl 0x441ae6
xor eax, eax
mov esi, dword [ebx + eax*8 + 0x74]
cmp esi, 0xfffffffe
jne 0x441b03
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x28]
mov dword [ebx + 0x3a0], eax
mov dword [ebx + 0x3a4], ecx
jmp 0x441b38
mov edx, dword [ebx]
mov eax, dword [edx]
mov edi, dword [ebx + 0xc]
cdq
idiv edi
mov ecx, 1
cmp eax, 1
jl 0x441b19
mov ecx, eax
mov eax, esi
cdq
idiv ecx
mov eax, esi
imul edx, edi
mov dword [ebx + 0x3a0], edx
cdq
idiv ecx
imul eax, dword [ebx + 0x10]
mov dword [ebx + 0x3a4], eax
xor edi, edi
cmp ebp, edi
mov dword [ebx + 0x3b4], edi
jne 0x441b5c
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 0x3a0]
jne 0x441b5c
mov ecx, dword [ebx + 8]
cmp ecx, dword [ebx + 0x3a4]
je 0x441cc1
call fcn.0040aec0
mov dword [ebx + 0x398], eax
mov dword [ebx + 0x39c], edi
call fcn.0040aec0
sub eax, dword [ebx + 0x60]
cdq
mov ecx, eax
mov eax, dword [ebx + 0x64]
xor ecx, edx
sub ecx, edx
cmp eax, 1
mov esi, eax
jg 0x441b8b
mov esi, 1
mov eax, ecx
shl eax, 8
sub eax, ecx
cdq
idiv esi
mov ecx, 0xff
mov edx, 0
sub ecx, eax
sets dl
dec edx
and edx, ecx
mov esi, edx
cmp esi, 0xff
jle 0x441bb6
mov esi, 0xff
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x10]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebx]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x3a8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
call fcn.0044f430
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
add esp, 0x10
cmp eax, edi
je 0x441c24
mov edx, dword [ebx + 0x3a8]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edx + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call fcn.0044f430
add esp, 0x10
cmp dword [ebx + 0x5c], edi
je 0x441c89
cmp esi, 0xff
je 0x441c89
mov eax, dword [ebx + 0x3a0]
mov ecx, dword [ebx + 0x3a4]
push esi
lea edx, [esp + 0x24]
push edx
mov edx, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x3a8]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.0044fd40
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
add esp, 0x14
cmp eax, edi
je 0x441c89
mov edx, dword [ebx + 0x3a8]
push esi
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [edx + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0044fd40
add esp, 0x14
cmp dword [ebx + 0x38], edi
jne 0x441cc1
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0x38], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [ebx]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
mov dword [esp + 0x44], eax
call fcn.00441030
add esp, 8
mov eax, dword [ebx + 0x27c]
xor edi, edi
cmp eax, edi
je 0x441e90
call fcn.0040aec0
sub eax, dword [ebx + 0x280]
cdq
mov esi, eax
mov eax, dword [ebx + 0x284]
xor esi, edx
sub esi, edx
cmp esi, eax
jl 0x441dd0
cmp dword [ebx + 0x70], edi
je 0x441d63
mov ecx, dword [ebx + 0x290]
xor edx, edx
sub esi, dword [ebx + 0x284]
mov eax, dword [ebx + 0x288]
cmp eax, edi
jl 0x441d1b
mov ebp, dword [ebx + eax*8 + 0x294]
mov dword [ebx + 0x28c], ebp
inc eax
cmp eax, ecx
mov dword [ebx + 0x288], eax
jl 0x441d36
mov dword [ebx + 0x288], edi
mov dword [ebx + 0x27c], 2
mov eax, dword [ebx + 0x288]
mov eax, dword [ebx + eax*8 + 0x298]
cmp eax, edi
jl 0x441d59
cmp esi, eax
mov dword [ebx + 0x284], eax
jl 0x441dc3
inc edx
cmp edx, 0x64
jl 0x441cfe
jmp 0x441dc3
mov dword [ebx + 0x27c], edi
xor esi, esi
jmp 0x441dc3
mov eax, dword [ebx + 0x288]
xor esi, esi
cmp eax, edi
jl 0x441d7c
mov ecx, dword [ebx + eax*8 + 0x294]
mov dword [ebx + 0x28c], ecx
mov ecx, dword [ebx + 0x290]
inc eax
cmp eax, ecx
mov dword [ebx + 0x288], eax
jl 0x441d9d
mov dword [ebx + 0x288], edi
mov dword [ebx + 0x27c], 2
mov edx, dword [ebx + 0x288]
mov ecx, dword [ebx + edx*8 + 0x298]
cmp ecx, edi
lea eax, [ebx + edx*8 + 0x298]
jge 0x441dbb
mov dword [ebx + 0x27c], edi
mov eax, dword [eax]
mov dword [ebx + 0x284], eax
call fcn.0040aec0
sub eax, esi
mov dword [ebx + 0x280], eax
mov edx, dword [ebx + 0x288]
cmp dword [ebx + edx*8 + 0x298], edi
jle 0x441e17
mov ecx, dword [ebx + 0x284]
mov edx, dword [ebx + edx*8 + 0x294]
mov eax, ecx
imul edx, esi
sub eax, esi
imul eax, dword [ebx + 0x28c]
add eax, edx
cdq
idiv ecx
cmp eax, 0xff
jl 0x441e0b
mov eax, 0xff
xor edx, edx
cmp eax, edi
setle dl
dec edx
and edx, eax
jmp 0x441e1e
mov edx, dword [ebx + edx*8 + 0x294]
cmp edx, dword [ebx + 0x2c]
je 0x441e90
cmp dword [ebx + 0x38], edi
mov dword [ebx + 0x2c], edx
jne 0x441e90
cmp dword [ebx + 0x3ac], edi
jne 0x441e60
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0x38], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [ebx]
push ecx
mov dword [esp + 0x20], eax
push edx
jmp 0x441e88
mov eax, dword [ebx + 0x3b8]
mov ecx, dword [ebx + 0x3bc]
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x3b0]
push edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ecx
push eax
call fcn.00441030
add esp, 8
cmp dword [ebx + 0x3ac], edi
je 0x4422e4
cmp dword [ebx + 0x3c8], edi
je 0x441f16
call fcn.0040aec0
sub eax, dword [ebx + 0x3d8]
mov ecx, dword [ebx + 0x3c8]
cdq
xor eax, edx
sub eax, edx
cmp ecx, 1
mov dword [esp + 0x54], eax
jne 0x441edd
mov ecx, dword [ebx + 0x3dc]
cmp eax, ecx
jle 0x441ed5
mov eax, ecx
mov dword [esp + 0x54], eax
cmp eax, ecx
jne 0x441edd
mov dword [ebx + 0x3c8], edi
fld dword [ebx + 0x3d4]
fsub dword [ebx + 0x3d0]
fidiv dword [ebx + 0x3dc]
fimul dword [esp + 0x54]
fadd dword [ebx + 0x3d0]
fcom dword [ebx + 0x3cc]
fnstsw ax
test ah, 0x40
jne 0x441f14
fstp dword [ebx + 0x3cc]
mov dword [ebx + 0x3b4], edi
jmp 0x441f16
fstp st(0)
push ebx
call fcn.004424d0
push ebx
call fcn.00442670
mov eax, dword [ebx + 0x3b4]
add esp, 8
cmp eax, edi
jne 0x4422e4
cmp dword [ebx + 0x2c], 0xff
je 0x4422e4
cmp dword [ebx + 0x34], edi
jne 0x4422e4
mov eax, dword [ebx + 0x3b0]
cmp eax, edi
je 0x441f7d
mov ecx, dword [ebx + 0x3b8]
mov edx, dword [ebx + 0x3bc]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edx
call fcn.00441030
add esp, 8
call fcn.0040aec0
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0x3b4], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov edx, eax
sar ecx, 1
imul edx, eax
mov eax, ecx
imul eax, ecx
add edx, eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x28], esi
fild dword [esp + 0x54]
fsqrt
fld dword [ebx + 0x3e4]
fabs
fmul st(1)
call fcn.00458bf0
fld dword [ebx + 0x500]
fabs
mov esi, eax
fmul st(1)
inc esi
call fcn.00458bf0
fstp st(0)
inc eax
cmp esi, eax
jg 0x441ff2
mov esi, eax
lea ecx, [esi + 0x32]
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [ebx + 0x18]
lea eax, [edx + edx*2]
lea eax, [edx + eax*8]
mov edx, dword [ebx + 0x1c]
shl eax, 1
sub ecx, eax
sub edx, eax
add eax, eax
cmp ecx, edi
mov dword [ebx + 0x3c0], ecx
mov dword [ebx + 0x3c4], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [ebx + 0x3b8], eax
mov dword [esp + 0x18], eax
mov dword [ebx + 0x3bc], eax
mov dword [esp + 0x1c], eax
jge 0x442050
mov dword [esp + 0x10], ecx
mov dword [ebx + 0x3c0], edi
cmp edx, edi
jge 0x44205e
mov dword [esp + 0x14], edx
mov dword [ebx + 0x3c4], edi
call fcn.004256b0
mov ecx, dword [ebx + 0x3b8]
add ecx, dword [ebx + 0x3c0]
cmp ecx, eax
jl 0x442084
call fcn.004256b0
sub eax, dword [ebx + 0x3c0]
mov dword [ebx + 0x3b8], eax
call fcn.004256e0
mov edx, dword [ebx + 0x3c4]
add edx, dword [ebx + 0x3bc]
cmp edx, eax
jl 0x4420aa
call fcn.004256e0
sub eax, dword [ebx + 0x3c4]
mov dword [ebx + 0x3bc], eax
cmp dword [ebx + 0x3b8], edi
jle 0x4422e4
cmp dword [ebx + 0x3bc], edi
jle 0x4422e4
call fcn.004256b0
cmp dword [ebx + 0x3c0], eax
jg 0x4422e4
call fcn.004256e0
cmp dword [ebx + 0x3c4], eax
jg 0x4422e4
mov eax, dword [ebx + 0x3b0]
cmp eax, edi
je 0x442149
mov ecx, dword [ebx + 0x3b8]
cmp ecx, dword [eax]
jne 0x442119
mov esi, dword [ebx + 0x3bc]
cmp esi, dword [eax + 4]
jne 0x442119
mov edx, dword [eax + 0x1c]
cmp edx, edi
je 0x4421ed
mov ecx, dword [edx + 8]
imul ecx, esi
jmp 0x4421d9
mov eax, dword [eax + 0x1c]
cmp eax, edi
je 0x442133
push edi
push eax
call fcn.00446130
mov eax, dword [ebx + 0x3b0]
add esp, 8
mov dword [eax + 0x1c], edi
mov ecx, dword [ebx + 0x3b0]
push edi
push ecx
call fcn.00446130
add esp, 8
mov dword [ebx + 0x3b0], edi
mov edx, dword [ebx]
cmp dword [edx + 0x10], edi
je 0x44217f
mov eax, dword [ebx + 0x3bc]
mov ecx, dword [ebx + 0x3b8]
push 0
push eax
push ecx
call fcn.004464b0
mov edx, dword [ebx]
mov dword [ebx + 0x3b0], eax
mov esi, dword [edx + 0x24]
mov edi, dword [eax + 0x24]
mov ecx, 0x100
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x44219c
mov eax, dword [ebx + 0x3bc]
mov ecx, dword [ebx + 0x3b8]
push edi
push eax
push ecx
call fcn.00446490
add esp, 0xc
mov dword [ebx + 0x3b0], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x4421ed
mov eax, dword [ebx + 0x3bc]
mov ecx, dword [ebx + 0x3b8]
push 0
push eax
push ecx
call fcn.004464b0
mov edx, dword [ebx + 0x3b0]
mov dword [edx + 0x1c], eax
mov eax, dword [ebx + 0x3b0]
mov edx, dword [eax + 0x1c]
mov ecx, dword [edx + 8]
add esp, 0xc
imul ecx, dword [ebx + 0x3bc]
mov edi, dword [edx + 0x28]
mov edx, ecx
shr ecx, 2
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x3b8]
mov ecx, dword [ebx + 0x3bc]
mov edx, dword [ebx]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
xor eax, eax
xor edi, edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov esi, dword [edx + 0x28]
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, byte [esi + 2]
lea edx, [esp + 0x40]
mov ah, byte [esi]
shl eax, 8
or eax, ecx
push eax
mov eax, dword [ebx + 0x3b0]
push edx
push eax
call fcn.0041aee0
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov edx, dword [ebx + 0x3b0]
mov dword [edx + 0x18], eax
mov eax, dword [ebx + 0x3a8]
add esp, 0xc
cmp eax, edi
je 0x44228f
fld dword [ebx + 0x500]
mov edx, dword [ebx + 0x3b0]
sub esp, 8
fstp qword [esp]
sub esp, 8
fld dword [ebx + 0x3e4]
sub esp, 8
fstp qword [esp + 8]
lea ecx, [esp + 0x28]
fld dword [ebx + 0x3cc]
mov dword [esp + 0x38], edi
fstp qword [esp]
push ecx
push edx
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x48], edi
push eax
jmp 0x4422c8
fld dword [ebx + 0x500]
mov eax, dword [ebx + 0x3b0]
sub esp, 8
fstp qword [esp]
sub esp, 8
fld dword [ebx + 0x3e4]
sub esp, 8
fstp qword [esp + 8]
lea edx, [esp + 0x28]
fld dword [ebx + 0x3cc]
lea ecx, [esp + 0x38]
fstp qword [esp]
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
call fcn.00450190
mov ecx, dword [ebx + 0x3b0]
add esp, 0x28
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00441030
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret