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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45df92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x46d7dc
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], esi
call fcn.0045bcba
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 0x4e0]
fld dword [ebp + 0x10]
lea eax, [ecx + ecx*4]
mov dword [esp + 0xb8], 1
fstp qword [esp + 0x5c]
fld dword [ebp + 0x14]
shl eax, 3
fmul qword [0x4640b8]
sub eax, ecx
mov dword [esp + 0x18], esi
lea eax, [eax + eax*8]
fstp qword [esp + 0x54]
lea eax, [edx + eax*4]
mov dword [esp + 0x24], eax
mov eax, ecx
shl eax, 5
mov dword [esp + 0x4c], eax
mov edx, dword [edi + 0x4e8]
mov ecx, eax
add ecx, edx
mov dword [esp + 0x30], ecx
mov edx, dword [ecx]
cmp edx, esi
jle 0x42d699
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], esi
mov edx, dword [edi + 0x4e8]
mov esi, dword [ebp + 0x28]
mov ebx, dword [eax + edx + 4]
mov edx, dword [esp + 0x10]
add ebx, edx
mov edx, dword [ebx]
cmp dword [esi + edx*4], 1
jne 0x42d676
mov eax, dword [ebx + 0x38]
mov esi, dword [0x460774]
shl eax, 2
push eax
call esi
mov edx, dword [ebx + 0x38]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], eax
test edx, edx
jle 0x42d260
mov dword [eax], 0xffffffff
mov edx, dword [ebx + 0x38]
inc ecx
add eax, 4
cmp ecx, edx
jl 0x42d24f
mov eax, dword [ebx + 0x38]
lea ecx, [eax + eax*2]
shl ecx, 2
push ecx
call esi
mov esi, eax
mov eax, dword [ebx + 0x38]
xor edx, edx
add esp, 4
cmp eax, edx
mov dword [esp + 0x14], edx
jle 0x42d2c0
xor eax, eax
lea ecx, [esi + 4]
mov edx, dword [ebx + 0x3c]
add eax, 0xc
add ecx, 0xc
fld dword [eax + edx - 0xc]
fadd dword [ebx + 0xc]
fstp dword [ecx - 0x10]
mov edx, dword [ebx + 0x3c]
fld dword [eax + edx - 4]
fadd dword [ebx + 0x14]
fstp dword [ecx - 8]
mov edx, dword [ebx + 0x3c]
fld dword [eax + edx - 8]
fadd dword [ebx + 0x10]
mov edx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x14], edx
fstp dword [ecx - 0xc]
cmp edx, dword [ebx + 0x38]
jl 0x42d283
xor edx, edx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], edx
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 0x44], edx
jle 0x42d65b
mov dword [esp + 0x14], edx
jmp 0x42d2e3
mov ecx, dword [esp + 0x10]
mov ebx, dword [eax + ecx + 0x48]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + ecx + 0x40]
add ebx, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], 4
movsx eax, word [ebx]
mov edx, dword [esp + 0x28]
shl eax, 2
cmp dword [eax + edx], 0xffffffff
jne 0x42d620
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp byte [eax + edx + 3], 0xff
mov edx, dword [ebp + 0x20]
sete cl
xor eax, eax
test edx, edx
sete al
or ecx, eax
je 0x42d620
mov ecx, dword [esp + 0x20]
sub esp, 0xc
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
movsx eax, word [ecx + 6]
mov ecx, esp
sub esp, 0xc
lea edx, [eax + eax*2]
mov dword [esp + 0x58], 0
lea eax, [esi + edx*4]
mov edx, dword [esi + edx*4]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x38]
movsx eax, word [ecx + 4]
mov ecx, esp
sub esp, 0xc
lea edx, [eax + eax*2]
lea eax, [esi + edx*4]
mov edx, dword [esi + edx*4]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x44]
movsx eax, word [ecx + 2]
mov ecx, esp
sub esp, 0xc
lea edx, [eax + eax*2]
lea eax, [esi + edx*4]
mov edx, dword [esi + edx*4]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x50]
movsx eax, word [ecx]
mov ecx, esp
lea edx, [eax + eax*2]
lea eax, [esi + edx*4]
mov edx, dword [esi + edx*4]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esp + 0xd4]
push ecx
mov ecx, edi
call fcn.004241b0
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
sub esp, 0xc
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, esp
mov dword [edx + 8], eax
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [ecx], edx
mov edx, dword [esp + 0x5c]
mov dword [ecx + 4], eax
lea eax, [esp + 0xb0]
push eax
mov dword [ecx + 8], edx
mov ecx, edi
call fcn.004240e0
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x44], eax
movsx eax, word [ebx]
lea ecx, [eax + eax*2]
fld dword [esi + ecx*4]
mov ecx, dword [edi + 0x4dc]
fstp qword [esp + 0x68]
movsx eax, word [ebx]
lea edx, [eax + eax*2]
fld dword [esi + edx*4 + 8]
mov edx, dword [ebp + 0xc]
fstp qword [esp + 0x70]
movsx eax, word [ebx]
lea eax, [eax + eax*2]
fld dword [esi + eax*4 + 4]
fadd qword [0x4640c0]
xor eax, eax
cmp edx, ecx
fstp qword [esp + 0x78]
fld qword [esp + 0x54]
fsin
fld qword [esp + 0x5c]
fcos
fmul st(1)
fstp qword [esp + 0x80]
fld qword [esp + 0x5c]
fsin
fmul st(1)
fstp qword [esp + 0x88]
fstp st(0)
fld qword [esp + 0x54]
fcos
fstp qword [esp + 0x90]
je 0x42d537
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp word [edx + 0x5c], 0xffff
je 0x42d516
jmp 0x42d4c8
mov ecx, dword [esp + 0xc]
cmp ecx, 0x12c
jge 0x42d511
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x80]
movsx eax, word [eax + ecx*4 + 0x5c]
mov ecx, dword [ebp + 0x24]
push ecx
push eax
lea eax, [esp + 0x70]
push edx
push eax
mov ecx, edi
call fcn.0042c700
cmp eax, 1
mov ecx, 0x12c
je 0x42d500
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0xc], ecx
cmp word [edx + ecx*4 + 0x5c], 0xffff
jne 0x42d4c4
cmp eax, 1
je 0x42d581
mov eax, dword [ebp + 0x24]
mov ecx, dword [edi + 0x4dc]
push eax
lea edx, [esp + 0x84]
push ecx
lea eax, [esp + 0x70]
push edx
push eax
mov ecx, edi
call fcn.0042c700
jmp 0x42d581
test ecx, ecx
mov dword [esp + 0xc], 0
jl 0x42d581
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0xc]
push ecx
lea eax, [esp + 0x84]
push edx
lea ecx, [esp + 0x70]
push eax
push ecx
mov ecx, edi
call fcn.0042c700
cmp eax, 1
jne 0x42d56e
mov ecx, dword [edi + 0x4dc]
inc ecx
jmp 0x42d572
mov ecx, dword [esp + 0xc]
mov edx, dword [edi + 0x4dc]
inc ecx
cmp ecx, edx
mov dword [esp + 0xc], ecx
jle 0x42d543
movsx edx, word [ebx]
mov ecx, dword [esp + 0x28]
cmp eax, 1
mov dword [ecx + edx*4], eax
jne 0x42d5d7
movsx edx, word [ebx]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x1c]
push 0x3f800000
mov dword [ecx + edx*4], eax
sub esp, 0xc
movsx eax, word [ebx]
mov ecx, esp
lea edx, [eax + eax*2]
lea eax, [esi + edx*4]
mov edx, dword [esi + edx*4]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x28]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x2c]
movsx eax, word [ebx]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push 1
push eax
jmp 0x42d619
movsx ecx, word [ebx]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 0x18]
push 0
mov dword [eax + ecx*4], edx
sub esp, 0xc
movsx eax, word [ebx]
lea ecx, [eax + eax*2]
mov eax, esp
lea edx, [esi + ecx*4]
mov ecx, dword [esi + ecx*4]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
mov edx, dword [ebp + 0xc]
movsx eax, word [ebx]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
push 1
push edx
mov ecx, edi
call fcn.0042dfe0
mov eax, dword [esp + 0x34]
add ebx, 2
dec eax
mov dword [esp + 0x34], eax
jne 0x42d301
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
add eax, 0xe
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
inc ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x48], ecx
cmp ecx, dword [eax + edx + 0x44]
jl 0x42d2df
push esi
mov esi, dword [0x46076c]
call esi
mov eax, dword [esp + 0x2c]
push eax
call esi
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
add esp, 8
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov esi, dword [ecx]
inc edx
add ebx, 0x94
cmp edx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
jl 0x42d211
xor esi, esi
mov ecx, dword [esp + 0x18]
add eax, 8
inc ecx
mov dword [esp + 0x4c], eax
cmp ecx, 4
mov dword [esp + 0x18], ecx
jl 0x42d1f1
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0045be88
mov dword [esp + 0x50], 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xb8], 0
call fcn.0045bc84
mov ecx, dword [esp + 0xb0]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24