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

Disassembly:
sub esp, 0x94
fldz
push ebx
mov ebx, dword [esp + 0x9c]
fstp qword [esp + 0x44]
mov eax, dword [ebx + 0x180]
mov ecx, dword [ebx + 0x190]
push ebp
mov ebp, dword [ecx + eax*4]
mov eax, dword [ebp + 0x154]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], eax
push esi
or esi, 0xffffffff
mov eax, ecx
and eax, 8
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], esi
jne 0x100315ad
test ecx, 0x40000004
je 0x100315ad
lea ecx, [edi + edx*4]
mov eax, edi
cmp edi, ecx
jae 0x10031586
lea esi, [esi + esi*2]
add esi, dword [eax]
add eax, 4
cmp eax, ecx
jb 0x10031576
mov dword [esp + 0x3c], esi
cmp dword [ebp + 0x9c], 0
je 0x10031634
push 1
xor ecx, ecx
cmp dword [ebp + 0x84], ecx
sete cl
push ecx
push edi
push ebx
call fcn.1002b380
jmp 0x10031631
test eax, eax
jne 0x100315eb
test ecx, 0x40000004
jne 0x100315e7
lea edx, [edi + edx*8]
mov eax, edi
cmp edi, edx
jae 0x100315da
mov ecx, dword [eax]
lea ecx, [ecx + ecx*2]
add ecx, dword [eax + 4]
add eax, 8
add ecx, esi
lea esi, [ecx + esi*8]
cmp eax, edx
jb 0x100315c2
mov dword [esp + 0x3c], esi
cmp dword [ebp + 0x9c], 0
je 0x10031634
push 1
jmp 0x10031617
test eax, eax
je 0x10031634
test ecx, 0x40000004
je 0x10031600
cmp dword [ebp + 0x9c], 0
je 0x10031634
push 0
jmp 0x10031595
test eax, eax
je 0x10031634
test ecx, 0x40000004
jne 0x10031634
cmp dword [ebp + 0x9c], 0
je 0x10031634
push 0
xor edx, edx
cmp dword [ebp + 0x84], edx
sete dl
push edx
push edi
push ebx
call fcn.1002da00
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x38], eax
add esp, 0x10
mov edi, dword [ebp + 0x6c]
mov dword [ebp + 4], 0x18
mov ecx, 8
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x58], 0
je 0x10031695
mov esi, dword [ebx + 0x50]
xor edi, edi
mov ecx, dword [ebp + 0x70]
push ecx
mov ecx, dword [ebp + 0x6c]
mov eax, esi
call fcn.1002f3e0
mov edx, dword [esi]
sub dword [ebx + 0x54], edx
mov eax, dword [esi + 4]
add esp, 4
cmp eax, edi
je 0x1003167b
push eax
call fcn.100491ea
add esp, 4
mov dword [esi + 4], edi
dec dword [ebx + 0x58]
add esi, 0xc
cmp dword [ebx + 0x58], edi
jne 0x10031652
mov eax, dword [ebx + 0x50]
push eax
call fcn.100491ea
add esp, 4
mov dword [ebx + 0x50], edi
cmp dword [esp + 0x30], 0
je 0x10032810
lea ecx, [esp + 0x18]
push ecx
mov eax, ebp
call fcn.1002f910
mov edx, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x6c]
add esp, 4
push edx
lea eax, [esp + 0x1c]
call fcn.1002f3e0
mov eax, dword [esp + 0x20]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x100316d9
push eax
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.1002f970
mov ecx, dword [ebp + 0x70]
push ecx
mov ecx, dword [ebp + 0x6c]
lea eax, [esp + 0x24]
call fcn.1002f3e0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, edi
je 0x1003170c
push eax
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x18]
push edx
push ebp
call fcn.1002fb30
mov eax, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x6c]
push eax
lea eax, [esp + 0x24]
call fcn.1002f3e0
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, edi
je 0x1003173f
push eax
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x18]
push ecx
mov eax, ebp
call fcn.1003aae0
mov edx, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x6c]
add esp, 4
push edx
lea eax, [esp + 0x1c]
call fcn.1002f3e0
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, edi
je 0x10031776
push eax
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x28]
and eax, 0x7800000
cmp eax, 0x7800000
jne 0x100317e4
cmp dword [ebx + 0x2c], 0xac44
je 0x100317e4
push 4
call fcn.100492c7
movzx ecx, byte [ebx + 0x2c]
mov esi, eax
mov byte [esi], cl
mov edx, dword [ebx + 0x2c]
sar edx, 8
mov byte [esi + 1], dl
movzx ecx, byte [ebx + 0x2e]
lea eax, [esi + 1]
inc eax
mov byte [eax], cl
mov edx, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x6c]
sub eax, esi
inc eax
add esp, 4
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], 0x27
call fcn.1002f3e0
add esp, 4
push esi
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], edi
mov ebx, dword [esp + 0x28]
and ebx, 8
je 0x10031828
lea eax, [esp + 0x18]
push eax
mov eax, ebp
call fcn.1003ab80
mov ecx, dword [ebp + 0x70]
add esp, 4
push ecx
mov ecx, dword [ebp + 0x6c]
lea eax, [esp + 0x1c]
call fcn.1002f3e0
mov eax, dword [esp + 0x20]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x1003182a
push eax
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], edi
jmp 0x1003182a
xor edi, edi
test byte [esp + 0x28], 0x80
je 0x10031898
push 4
call fcn.100492c7
movzx edx, byte [ebp + 0x11c]
mov esi, eax
mov byte [esi], dl
movzx ecx, byte [ebp + 0x11d]
mov byte [esi + 1], cl
movzx edx, byte [ebp + 0x11e]
lea eax, [esi + 1]
mov byte [eax + 1], dl
movzx ecx, byte [ebp + 0x11f]
inc eax
inc eax
mov byte [eax], cl
mov edx, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x6c]
sub eax, esi
inc eax
add esp, 4
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], 8
call fcn.1002f3e0
add esp, 4
push esi
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], edi
test dword [esp + 0x28], 0x100
je 0x10031907
push 4
call fcn.100492c7
mov esi, eax
mov al, byte [ebp + 0x118]
mov byte [esi], al
movzx ecx, byte [ebp + 0x119]
mov byte [esi + 1], cl
mov dl, byte [ebp + 0x11a]
lea eax, [esi + 1]
mov byte [eax + 1], dl
movzx ecx, byte [ebp + 0x11b]
inc eax
inc eax
mov byte [eax], cl
mov edx, dword [ebp + 0x70]
mov ecx, dword [ebp + 0x6c]
sub eax, esi
inc eax
add esp, 4
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], 9
call fcn.1002f3e0
add esp, 4
push esi
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], edi
mov ebp, dword [esp + 0x28]
and ebp, 0x800
je 0x10031967
mov ecx, dword [esp + 0xa8]
mov eax, dword [ecx + 0x1c]
cmp eax, 2
jg 0x1003192e
mov edx, 5
sub edx, eax
cmp dword [ecx + 0x30], edx
je 0x10031967
lea edi, [esp + 0x18]
mov esi, ecx
call fcn.100302d0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x70]
push ecx
mov ecx, dword [eax + 0x6c]
mov eax, edi
call fcn.1002f3e0
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x10031967
push eax
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], 0
test ebp, ebp
je 0x100319b6
mov edx, dword [esp + 0x10]
cmp dword [edx + 0xa8], 0
jne 0x100319b6
mov esi, dword [esp + 0xa8]
lea edi, [esp + 0x18]
call fcn.10030380
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x70]
push ecx
mov ecx, dword [eax + 0x6c]
mov eax, edi
call fcn.1002f3e0
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x100319b6
push eax
call fcn.100491ea
add esp, 4
mov dword [esp + 0x1c], 0
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x6c]
mov edx, dword [eax + 4]
mov ecx, dword [edi + 0x70]
lea eax, [edx + eax + 0xc]
xor edx, edx
mov dword [edi + 0xb8], eax
mov dword [edi + 0xc0], eax
mov eax, dword [esp + 0xa8]
mov ebp, 0x1002a200
mov dword [edi + 0xcc], edx
mov dword [edi + 0xd0], edx
mov dword [edi + 0xc8], edx
mov dword [edi + 0xbc], ecx
mov dword [edi + 0xc4], ebp
cmp dword [eax + 0x98], edx
je 0x10031a9d
test byte [esp + 0x28], 0x40
mov dword [edi + 4], 0x18
mov esi, edi
mov edi, dword [edi + 0x74]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x10]
je 0x10031a5e
lea ecx, [esp + 0x18]
push ecx
call fcn.10030010
mov edx, dword [edi + 0x78]
mov ecx, dword [edi + 0x74]
add esp, 4
push edx
lea eax, [esp + 0x1c]
call fcn.1002f3e0
mov eax, dword [esp + 0x20]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x10031a60
push eax
call fcn.100491ea
add esp, 4
jmp 0x10031a60
xor esi, esi
mov eax, dword [edi + 0x74]
mov edx, dword [eax + 4]
mov ecx, dword [edi + 0x78]
lea eax, [edx + eax + 0xc]
mov dword [edi + 0xe8], esi
mov dword [edi + 0xec], esi
mov dword [edi + 0xe4], esi
mov dword [edi + 0xd4], eax
mov dword [edi + 0xdc], eax
mov dword [edi + 0xd8], ecx
mov dword [edi + 0xe0], ebp
mov edi, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [esp + 0x28]
cmp ebx, edx
jne 0x10031ca0
test ecx, 0x40000004
je 0x10031be1
cmp dword [edi + 0x9c], edx
jne 0x10031bc3
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0xac]
mov dword [esp + 0x2c], eax
jbe 0x10031bc3
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x10]
mov ebp, dword [ecx + 0x84]
mov edx, dword [esp + 0x2c]
mov edi, dword [edx]
add ecx, 0x160
test ebp, ebp
je 0x10031b9f
mov ebx, dword [esp + 0x14]
mov edx, dword [ecx]
dec ebp
cmp edx, 8
jle 0x10031b2f
test dl, 1
mov edx, dword [ecx + 0x10]
je 0x10031b1f
lea eax, [edx + edx]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], edi
jmp 0x10031b3c
lea eax, [edx + edx*2]
sub eax, dword [ecx + 0x14]
mov dword [ecx + 0x14], edx
sar eax, 1
mov dword [ecx + 0x10], edi
jmp 0x10031b3c
mov eax, dword [ecx + ebx*4 + 0x10]
add edx, ebx
and edx, 7
mov dword [ecx + edx*4 + 0x10], edi
mov esi, dword [ecx + 8]
movsx edx, ax
cmp eax, edx
je 0x10031b6b
mov edx, eax
sar edx, 9
mov ebx, eax
and ebx, 0xffff
and edx, 0xffffff80
imul ebx, esi
imul edx, esi
sar ebx, 9
lea edx, [edx + ebx + 1]
mov ebx, dword [esp + 0x14]
sar edx, 1
jmp 0x10031b79
mov edx, esi
imul edx, eax
add edx, 0x200
sar edx, 0xa
sub edi, edx
test eax, eax
je 0x10031b94
test edi, edi
je 0x10031b94
mov edx, dword [ecx + 4]
xor eax, edi
sar eax, 0x1f
xor edx, eax
sub edx, eax
add edx, esi
mov dword [ecx + 8], edx
add ecx, 0x60
test ebp, ebp
jne 0x10031b01
mov eax, dword [esp + 0x14]
inc eax
and eax, 7
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
add eax, 4
sub dword [esp + 0x40], 1
mov dword [esp + 0x2c], eax
jne 0x10031adf
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0x10]
push ecx
push edx
call fcn.1003b650
add esp, 8
jmp 0x100325f8
cmp ebx, edx
jne 0x10031ca0
test ecx, 0x40000004
jne 0x10031c98
mov eax, dword [esp + 0xac]
mov esi, dword [esp + 0x30]
lea esi, [eax + esi*8]
cmp dword [edi + 0x9c], edx
jne 0x10031c7a
test cl, 0x10
je 0x10031c2d
cmp eax, esi
jae 0x10031c2d
mov edx, dword [eax + 4]
sub dword [eax], edx
mov ecx, dword [eax]
sar ecx, 1
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
cmp eax, esi
jb 0x10031c14
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x84]
add eax, 0x160
test esi, esi
je 0x10031c7a
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0x30]
shr ecx, 0x12
mov edi, ecx
and edi, 0x1f
dec esi
cmp edi, 0x10
jae 0x10031c6a
cmp dword [eax + 4], 2
jne 0x10031c6a
mov ecx, ebp
mov edx, ebx
call fcn.10032820
jmp 0x10031c73
mov ecx, ebp
mov edx, ebx
call fcn.10032d20
add eax, 0x60
test esi, esi
jne 0x10031c53
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0x10]
push ecx
push edx
call fcn.1003b650
add esp, 8
jmp 0x10032711
cmp ebx, edx
je 0x10032711
test ecx, 0x40000004
je 0x10031f87
mov eax, dword [esp + 0xac]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
cmp eax, edx
jbe 0x10032711
and ecx, 0x40
add edi, 0x160
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov ebx, dword [ecx]
lea edx, [ebx + eax*2]
add edx, eax
add ecx, 4
cmp dword [esp + 0x40], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], ecx
je 0x10031da9
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x10031d15
movsx ecx, word [eax]
add eax, 2
mov dword [esp + 0x48], eax
jmp 0x10031d2a
mov eax, dword [edi + 0x128]
add dword [edi + 0x120], eax
mov ecx, dword [edi + 0x120]
sar ecx, 0x10
mov esi, dword [edi + 0x130]
movsx edx, si
mov eax, esi
cmp esi, edx
je 0x10031d58
sar eax, 9
mov edx, esi
and edx, 0xffff
and eax, 0xffffff80
imul edx, ecx
imul eax, ecx
sar edx, 9
lea eax, [eax + edx + 1]
sar eax, 1
jmp 0x10031d63
imul eax, ecx
add eax, 0x200
sar eax, 0xa
neg eax
test dword [esp + 0x28], 0x20000000
je 0x10031d9d
test ecx, ecx
jge 0x10031d9d
test eax, eax
je 0x10031d9d
cmp eax, esi
jne 0x10031d8f
test eax, eax
jge 0x10031d8e
mov ecx, ebx
neg ecx
inc eax
mov dword [edi + 0x130], ecx
add ebx, eax
jmp 0x10031da9
dec eax
mov ecx, ebx
neg ecx
mov dword [edi + 0x130], ecx
add ebx, eax
jmp 0x10031da9
add ebx, eax
mov edx, ebx
neg edx
mov dword [edi + 0x130], edx
mov ebp, dword [esp + 0x10]
mov edx, dword [ebp + 0x84]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
test edx, edx
je 0x10031e7e
mov eax, dword [esi]
dec edx
cmp eax, 8
jle 0x10031e2e
test al, 1
mov eax, dword [esi + 0x10]
je 0x10031ddc
add eax, eax
sub eax, dword [esi + 0x14]
mov dword [esi + 0x18], eax
jmp 0x10031de7
lea ecx, [eax + eax*2]
sub ecx, dword [esi + 0x14]
sar ecx, 1
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0x18]
movsx ecx, ax
cmp eax, ecx
mov ecx, dword [esi + 8]
je 0x10031e1b
mov ebp, eax
sar ebp, 9
and eax, 0xffff
imul eax, ecx
and ebp, 0xffffff80
imul ebp, ecx
sar eax, 9
lea ecx, [eax + ebp + 1]
mov ebp, dword [esp + 0x10]
sar ecx, 1
mov dword [esi + 0x50], ecx
sub ebx, ecx
jmp 0x10031e73
imul ecx, eax
add ecx, 0x200
sar ecx, 0xa
mov dword [esi + 0x50], ecx
sub ebx, ecx
jmp 0x10031e73
mov ecx, dword [esi + edi*4 + 0x10]
movsx eax, cx
cmp ecx, eax
je 0x10031e60
mov eax, ecx
mov ecx, dword [esi + 8]
mov ebp, eax
sar ebp, 9
and eax, 0xffff
and ebp, 0xffffff80
imul eax, ecx
imul ebp, ecx
sar eax, 9
lea eax, [eax + ebp + 1]
mov ebp, dword [esp + 0x10]
sar eax, 1
jmp 0x10031e6e
mov eax, dword [esi + 8]
imul eax, ecx
add eax, 0x200
sar eax, 0xa
mov dword [esi + 0x50], eax
sub ebx, eax
add esi, 0x60
test edx, edx
jne 0x10031dc3
push ebx
xor eax, eax
mov ecx, ebp
call fcn.1003b050
sub esi, 0x60
cmp esi, dword [esp + 0x38]
jb 0x10031ef0
mov edx, dword [esi]
cmp edx, 8
jle 0x10031ec0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10031eb2
test eax, eax
je 0x10031eb2
mov edx, dword [esi + 4]
xor ecx, eax
sar ecx, 0x1f
xor edx, ecx
sub edx, ecx
add dword [esi + 8], edx
mov ecx, dword [esi + 0x10]
add eax, dword [esi + 0x50]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
jmp 0x10031ee7
mov ecx, dword [esi + edi*4 + 0x10]
test ecx, ecx
je 0x10031edb
test eax, eax
je 0x10031edb
mov ebx, dword [esi + 4]
xor ecx, eax
sar ecx, 0x1f
xor ebx, ecx
sub ebx, ecx
add dword [esi + 8], ebx
add eax, dword [esi + 0x50]
add edx, edi
and edx, 7
mov dword [esi + edx*4 + 0x10], eax
sub esi, 0x60
cmp esi, dword [esp + 0x38]
jae 0x10031e91
mov ecx, dword [esp + 0x3c]
add dword [ebp + 0x130], eax
inc edi
lea edx, [eax + ecx*2]
add ecx, edx
and edi, 7
mov dword [esp + 0x14], edi
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x34]
je 0x10031f19
mov dword [esp + 0x44], 1
mov ecx, dword [esp + 0xa8]
test dword [ecx + 0x14], 0x800000
je 0x10031f77
mov edx, dword [esp + 0x2c]
sub eax, dword [edx - 4]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
fmul st(0), st(0)
fld qword [esp + 0x50]
fadd st(1)
fstp qword [esp + 0x50]
fld qword [ebp + 0x140]
fmul qword [0x1006be28]
fxch st(1)
fmul qword [0x1006be20]
faddp st(1)
fst qword [ebp + 0x140]
fcom qword [ebp + 0x148]
fnstsw ax
test ah, 0x41
jne 0x10031f75
fstp qword [ebp + 0x148]
jmp 0x10031f77
fstp st(0)
sub dword [esp + 0x24], 1
jne 0x10031cd8
jmp 0x100325f8
cmp ebx, edx
je 0x10032711
test ecx, 0x40000004
jne 0x10032711
mov eax, dword [esp + 0xac]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x4c], edx
cmp dword [esp + 0x30], edx
jbe 0x10032711
mov eax, ecx
and eax, 0x40
and ecx, 0x10
add edi, 0x160
mov dword [esp + 0x40], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], edi
mov ecx, dword [esp + 0x2c]
mov ebx, dword [ecx]
mov eax, dword [ecx + 4]
add ecx, 4
lea edx, [ebx + eax]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
lea edx, [edx + ebx*2]
lea edx, [edx + eax*8]
add eax, edx
add ecx, 4
cmp dword [esp + 0x40], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
je 0x10032149
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x10]
test edx, edx
je 0x1003201b
movsx ecx, word [edx]
add edx, 2
mov dword [esp + 0x48], edx
jmp 0x10032030
mov eax, dword [ebp + 0x128]
add dword [ebp + 0x120], eax
mov ecx, dword [ebp + 0x120]
sar ecx, 0x10
mov esi, dword [ebp + 0x130]
movsx eax, si
cmp esi, eax
mov eax, esi
je 0x1003205e
sar eax, 9
mov edi, esi
and edi, 0xffff
and eax, 0xffffff80
imul edi, ecx
imul eax, ecx
sar edi, 9
lea eax, [eax + edi + 1]
sar eax, 1
jmp 0x10032069
imul eax, ecx
add eax, 0x200
sar eax, 0xa
mov edi, dword [esp + 0x28]
neg eax
and edi, 0x20000000
je 0x100320a5
test ecx, ecx
jge 0x100320a5
test eax, eax
je 0x100320a5
cmp eax, esi
jne 0x10032097
test eax, eax
jge 0x10032096
mov esi, ebx
neg esi
inc eax
mov dword [ebp + 0x130], esi
add ebx, eax
jmp 0x100320b1
dec eax
mov esi, ebx
neg esi
mov dword [ebp + 0x130], esi
add ebx, eax
jmp 0x100320b1
add ebx, eax
mov eax, ebx
neg eax
mov dword [ebp + 0x130], eax
test edx, edx
jne 0x100320ca
mov ecx, dword [ebp + 0x12c]
add dword [ebp + 0x124], ecx
mov ecx, dword [ebp + 0x124]
sar ecx, 0x10
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x134]
movsx eax, dx
cmp edx, eax
mov eax, edx
je 0x100320fc
sar eax, 9
mov ebp, edx
and ebp, 0xffff
and eax, 0xffffff80
imul ebp, ecx
imul eax, ecx
sar ebp, 9
lea eax, [eax + ebp + 1]
sar eax, 1
jmp 0x10032107
imul eax, ecx
add eax, 0x200
sar eax, 0xa
neg eax
test edi, edi
je 0x10032137
test ecx, ecx
jge 0x10032137
test eax, eax
je 0x10032137
cmp eax, edx
jne 0x10032121
test eax, eax
jge 0x10032120
inc eax
jmp 0x10032121
dec eax
mov ecx, dword [esp + 0x24]
mov edx, ecx
neg edx
add ecx, eax
mov dword [esi + 0x134], edx
mov dword [esp + 0x24], ecx
jmp 0x10032149
mov ecx, dword [esp + 0x24]
add ecx, eax
mov dword [esp + 0x24], ecx
neg ecx
mov dword [esi + 0x134], ecx
cmp dword [esp + 0x5c], 0
mov ebp, dword [esp + 0x24]
je 0x1003215c
sub ebx, ebp
mov eax, ebx
sar eax, 1
add ebp, eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x84]
mov esi, dword [esp + 0x38]
test edx, edx
je 0x10032333
mov eax, dword [esi]
dec edx
cmp eax, 8
jle 0x100321ff
test al, 1
mov eax, dword [esi + 0x10]
je 0x10032197
mov ecx, dword [esi + 0x30]
add eax, eax
sub eax, dword [esi + 0x14]
add ecx, ecx
sub ecx, dword [esi + 0x34]
mov dword [esi + 0x18], eax
jmp 0x100321ad
lea eax, [eax + eax*2]
sub eax, dword [esi + 0x14]
sar eax, 1
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x30]
lea ecx, [eax + eax*2]
sub ecx, dword [esi + 0x34]
sar ecx, 1
mov dword [esi + 0x38], ecx
mov ecx, dword [esi + 0x18]
movsx eax, cx
cmp ecx, eax
mov eax, dword [esi + 8]
je 0x100321e7
mov edi, ecx
sar edi, 9
and ecx, 0xffff
imul ecx, eax
and edi, 0xffffff80
imul edi, eax
sar ecx, 9
lea eax, [edi + ecx + 1]
sar eax, 1
mov dword [esi + 0x50], eax
sub ebx, eax
mov eax, dword [esi + 0x38]
jmp 0x100322ef
imul eax, ecx
add eax, 0x200
sar eax, 0xa
mov dword [esi + 0x50], eax
sub ebx, eax
mov eax, dword [esi + 0x38]
jmp 0x100322ef
test eax, eax
jle 0x1003229e
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + eax*4 + 0x10]
movsx edi, cx
cmp ecx, edi
je 0x10032239
mov eax, ecx
mov ecx, dword [esi + 8]
mov edi, eax
and eax, 0xffff
sar edi, 9
imul eax, ecx
and edi, 0xffffff80
imul edi, ecx
sar eax, 9
lea eax, [edi + eax + 1]
sar eax, 1
jmp 0x10032247
mov eax, dword [esi + 8]
imul eax, ecx
add eax, 0x200
sar eax, 0xa
mov dword [esi + 0x50], eax
sub ebx, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + eax*4 + 0x30]
movsx edi, cx
cmp ecx, edi
je 0x10032286
mov eax, ecx
mov ecx, dword [esi + 0xc]
mov edi, eax
and eax, 0xffff
sar edi, 9
imul eax, ecx
and edi, 0xffffff80
imul edi, ecx
sar eax, 9
lea eax, [edi + eax + 1]
sar eax, 1
mov dword [esi + 0x54], eax
sub ebp, eax
jmp 0x10032328
mov eax, dword [esi + 0xc]
imul eax, ecx
add eax, 0x200
sar eax, 0xa
mov dword [esi + 0x54], eax
sub ebp, eax
jmp 0x10032328
cmp eax, 0xffffffff
jne 0x100322a8
mov dword [esi + 0x30], ebx
jmp 0x100322b0
cmp eax, 0xfffffffe
jne 0x100322b0
mov dword [esi + 0x10], ebp
mov ecx, dword [esi + 0x10]
movsx eax, cx
cmp ecx, eax
mov eax, dword [esi + 8]
je 0x100322dc
mov edi, ecx
sar edi, 9
and ecx, 0xffff
imul ecx, eax
and edi, 0xffffff80
imul edi, eax
sar ecx, 9
lea eax, [edi + ecx + 1]
sar eax, 1
jmp 0x100322e7
imul eax, ecx
add eax, 0x200
sar eax, 0xa
mov dword [esi + 0x50], eax
sub ebx, eax
mov eax, dword [esi + 0x30]
movsx ecx, ax
cmp eax, ecx
mov ecx, dword [esi + 0xc]
je 0x10032317
mov edi, eax
sar edi, 9
and eax, 0xffff
imul eax, ecx
and edi, 0xffffff80
imul edi, ecx
sar eax, 9
lea ecx, [edi + eax + 1]
sar ecx, 1
jmp 0x10032323
imul ecx, eax
add ecx, 0x200
sar ecx, 0xa
sub ebp, ecx
mov dword [esi + 0x54], ecx
add esi, 0x60
test edx, edx
jne 0x10032172
mov ecx, dword [esp + 0x10]
push ebx
xor eax, eax
call fcn.1003b050
mov ecx, dword [esp + 0x10]
mov edi, eax
push ebp
mov eax, 1
call fcn.1003b050
sub esi, 0x60
cmp esi, dword [esp + 0x38]
jb 0x10032524
mov ebx, dword [esp + 0x14]
mov ecx, dword [esi]
cmp ecx, 8
jle 0x100323b9
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10032382
test edi, edi
je 0x10032382
mov edx, dword [esi + 4]
xor ecx, edi
sar ecx, 0x1f
xor edx, ecx
sub edx, ecx
add dword [esi + 8], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1003239c
test eax, eax
je 0x1003239c
mov edx, dword [esi + 4]
xor ecx, eax
sar ecx, 0x1f
xor edx, ecx
sub edx, ecx
add dword [esi + 0xc], edx
add edi, dword [esi + 0x50]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x30]
add eax, dword [esi + 0x54]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x34], edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x30], eax
jmp 0x10032517
test ecx, ecx
jle 0x1003240c
lea edx, [ecx + ebx]
mov ecx, dword [esi + ebx*4 + 0x10]
and edx, 7
test ecx, ecx
je 0x100323de
test edi, edi
je 0x100323de
mov ebp, dword [esi + 4]
xor ecx, edi
sar ecx, 0x1f
xor ebp, ecx
sub ebp, ecx
add dword [esi + 8], ebp
add edi, dword [esi + 0x50]
mov dword [esi + edx*4 + 0x10], edi
mov ecx, dword [esi + ebx*4 + 0x30]
test ecx, ecx
je 0x10032400
test eax, eax
je 0x10032400
mov ebp, dword [esi + 4]
xor ecx, eax
sar ecx, 0x1f
xor ebp, ecx
sub ebp, ecx
add dword [esi + 0xc], ebp
add eax, dword [esi + 0x54]
mov dword [esi + edx*4 + 0x30], eax
jmp 0x10032517
cmp ecx, 0xffffffff
jne 0x10032456
mov ecx, dword [esi + 0x50]
add ecx, edi
movsx edx, cx
cmp ecx, edx
mov edx, dword [esi + 0xc]
mov dword [esi + 0x30], ecx
je 0x10032445
mov ebp, ecx
sar ebp, 9
and ecx, 0xffff
imul ecx, edx
and ebp, 0xffffff80
imul ebp, edx
sar ecx, 9
lea edx, [ecx + ebp + 1]
sar edx, 1
mov dword [esi + 0x54], edx
jmp 0x1003249b
imul edx, ecx
add edx, 0x200
sar edx, 0xa
mov dword [esi + 0x54], edx
jmp 0x1003249b
cmp ecx, 0xfffffffe
jne 0x1003249b
mov ecx, dword [esi + 0x54]
add ecx, eax
movsx edx, cx
cmp ecx, edx
mov edx, dword [esi + 8]
mov dword [esi + 0x10], ecx
je 0x1003248c
mov ebp, ecx
sar ebp, 9
and ecx, 0xffff
imul ecx, edx
and ebp, 0xffffff80
imul ebp, edx
sar ecx, 9
lea edx, [ecx + ebp + 1]
sar edx, 1
jmp 0x10032498
imul edx, ecx
add edx, 0x200
sar edx, 0xa
mov dword [esi + 0x50], edx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x100324d3
test edi, edi
je 0x100324d3
xor ecx, edi
sar ecx, 0x1f
mov edx, ecx
mov ecx, dword [esi + 8]
xor ecx, edx
add ecx, dword [esi + 4]
sub ecx, edx
cmp ecx, 0x400
mov dword [esi + 8], ecx
jle 0x100324c9
mov dword [esi + 8], 0x400
mov ecx, dword [esi + 8]
xor ecx, edx
sub ecx, edx
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x1003250b
test eax, eax
je 0x1003250b
xor ecx, eax
sar ecx, 0x1f
mov edx, ecx
mov ecx, dword [esi + 0xc]
xor ecx, edx
add ecx, dword [esi + 4]
sub ecx, edx
cmp ecx, 0x400
mov dword [esi + 0xc], ecx
jle 0x10032501
mov dword [esi + 0xc], 0x400
mov ecx, dword [esi + 0xc]
xor ecx, edx
sub ecx, edx
mov dword [esi + 0xc], ecx
add edi, dword [esi + 0x50]
add eax, dword [esi + 0x54]
mov dword [esi + 0x30], edi
mov dword [esi + 0x10], eax
sub esi, 0x60
cmp esi, dword [esp + 0x38]
jae 0x10032361
cmp dword [esp + 0x5c], 0
je 0x10032533
mov edx, edi
sar edx, 1
sub eax, edx
add edi, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add dword [edx + 0x130], edi
add dword [edx + 0x134], eax
inc ecx
and ecx, 7
mov dword [esp + 0x14], ecx
lea ecx, [edi + eax]
lea esi, [ecx + edi*2]
mov ecx, dword [esp + 0x3c]
lea esi, [esi + ecx*8]
add ecx, esi
mov dword [esp + 0x3c], ecx
cmp ecx, dword [esp + 0x34]
je 0x10032570
mov dword [esp + 0x44], 1
mov ecx, dword [esp + 0xa8]
test dword [ecx + 0x14], 0x800000
je 0x100325e5
mov ecx, dword [esp + 0x2c]
sub edi, dword [ecx - 8]
sub eax, dword [ecx - 4]
mov dword [esp + 0x24], edi
fild dword [esp + 0x24]
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld st(1)
fmulp st(2)
fmul st(0), st(0)
faddp st(1)
fmul qword [0x1006bdd0]
fld qword [esp + 0x50]
fadd st(1)
fstp qword [esp + 0x50]
fld qword [edx + 0x140]
fmul qword [0x1006be28]
fxch st(1)
fmul qword [0x1006be20]
faddp st(1)
fst qword [edx + 0x140]
fcom qword [edx + 0x148]
fnstsw ax
test ah, 0x41
jne 0x100325e3
fstp qword [edx + 0x148]
jmp 0x100325e5
fstp st(0)
mov eax, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x4c], eax
cmp eax, dword [esp + 0x30]
jb 0x10031fce
cmp dword [esp + 0x14], 0
je 0x10032711
mov ebp, dword [esp + 0x10]
mov ebx, dword [ebp + 0x84]
add ebp, 0x160
test ebx, ebx
je 0x10032711
lea eax, [ebp + 0x30]
mov edi, edi
mov ecx, dword [ebp]
dec ebx
test ecx, ecx
jle 0x10032703
cmp ecx, 8
jg 0x10032703
lea edx, [eax - 0x20]
mov esi, edx
mov ecx, 8
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, eax
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + ecx*4 + 0x60]
mov dword [edx], esi
mov edx, dword [esp + ecx*4 + 0x80]
inc ecx
and ecx, 7
mov dword [eax], edx
mov edx, dword [esp + ecx*4 + 0x60]
mov dword [eax - 0x1c], edx
mov edx, dword [esp + ecx*4 + 0x80]
inc ecx
and ecx, 7
mov dword [eax + 4], edx
mov edx, dword [esp + ecx*4 + 0x60]
mov dword [eax - 0x18], edx
mov edx, dword [esp + ecx*4 + 0x80]
inc ecx
and ecx, 7
mov dword [eax + 8], edx
mov edx, dword [esp + ecx*4 + 0x60]
mov dword [eax - 0x14], edx
mov edx, dword [esp + ecx*4 + 0x80]
inc ecx
and ecx, 7
mov dword [eax + 0xc], edx
mov edx, dword [esp + ecx*4 + 0x60]
mov dword [eax - 0x10], edx
mov edx, dword [esp + ecx*4 + 0x80]
inc ecx
and ecx, 7
mov dword [eax + 0x10], edx
mov edx, dword [esp + ecx*4 + 0x60]
mov dword [eax - 0xc], edx
mov edx, dword [esp + ecx*4 + 0x80]
inc ecx
and ecx, 7
mov dword [eax + 0x14], edx
mov edx, dword [esp + ecx*4 + 0x60]
mov dword [eax - 8], edx
mov edx, dword [esp + ecx*4 + 0x80]
inc ecx
and ecx, 7
mov dword [eax + 0x18], edx
mov edx, dword [esp + ecx*4 + 0x60]
mov dword [eax - 4], edx
mov edx, dword [esp + ecx*4 + 0x80]
inc ecx
and ecx, 7
mov dword [eax + 0x1c], edx
mov dword [esp + 0x14], ecx
add ebp, 0x60
add eax, 0x60
test ebx, ebx
jne 0x10032620
mov ebp, dword [esp + 0xa8]
test dword [ebp + 0x14], 0x800000
mov edi, dword [esp + 0x10]
je 0x10032735
fld qword [esp + 0x50]
fadd qword [edi + 0x138]
fstp qword [edi + 0x138]
mov esi, edi
call fcn.1003b950
lea esi, [edi + 0xb8]
call fcn.1002a220
test eax, eax
je 0x10032781
cmp eax, 0xffffffff
je 0x100327e8
mov ecx, dword [edi + 0x6c]
mov edx, dword [ecx + 4]
lea ecx, [edx + ecx + 8]
mov byte [ecx], 0x8a
inc ecx
mov edx, eax
shr edx, 1
mov byte [ecx], dl
inc ecx
mov edx, eax
shr edx, 9
mov byte [ecx], dl
mov edx, eax
shr edx, 0x11
mov byte [ecx + 1], dl
mov ecx, dword [edi + 0x6c]
add eax, 4
add dword [ecx + 4], eax
mov eax, dword [edi + 0x6c]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x1c], ecx
cmp dword [ebp + 0x98], 0
je 0x100327f5
lea esi, [edi + 0xd4]
call fcn.1002a220
test eax, eax
je 0x100327dc
cmp dword [esp + 0x44], 0
je 0x100327dc
cmp eax, 0xffffffff
je 0x100327e8
mov ecx, dword [edi + 0x74]
mov edx, dword [ecx + 4]
lea ecx, [edx + ecx + 8]
mov byte [ecx], 0x8b
inc ecx
mov edx, eax
shr edx, 1
mov byte [ecx], dl
inc ecx
mov edx, eax
shr edx, 9
mov byte [ecx], dl
mov edx, eax
shr edx, 0x11
mov byte [ecx + 1], dl
mov ecx, dword [edi + 0x74]
add eax, 4
add dword [ecx + 4], eax
mov eax, dword [edi + 0x74]
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x1c], ecx
jmp 0x10032806
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
cmp dword [esp + 0x44], 0
je 0x10032806
mov dword [ebp + 0xa8], 1
mov edx, dword [esp + 0x30]
add dword [edi + 0xa8], edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x94
ret