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

Disassembly:
sub esp, 0x120
mov eax, dword [0x52e2f0]
mov ecx, dword [0x52e2f4]
mov edx, dword [0x52e2f8]
push ebx
push ebp
push esi
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x130]
push edi
xor edi, edi
push eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x54], edi
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
call fcn.0047c880
mov ebp, eax
mov al, byte [esp + 0x144]
add esp, 4
test al, al
je 0x46a805
mov ecx, dword [ebp + 0xec]
mov dword [esp + 0x50], ecx
mov esi, dword [esp + 0x13c]
cmp esi, edi
je 0x46ac14
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], edi
cmp eax, edi
jl 0x46ab6b
fild dword [esp + 0x2c]
lea edx, [esp + 0xb8]
push ebp
push edx
push ecx
fstp dword [esp]
call fcn.0047cfa0
lea eax, [esp + 0xc4]
push 0xffffffffffffffff
push eax
push ebp
call fcn.0047e250
mov ecx, dword [ebp + 0x38]
add esp, 0x18
xor eax, eax
test ecx, ecx
mov dword [esp + 0x28], eax
jle 0x46ab56
mov ecx, dword [ebp + 0xd8]
lea edx, [eax + eax*4]
xor esi, esi
lea edx, [edx + edx*8]
mov dword [esp + 0x48], esi
shl edx, 1
sub edx, eax
mov edi, dword [ecx + edx*4 + 0x90]
lea edx, [ecx + edx*4]
test edi, edi
mov dword [esp + 0x4c], edx
jle 0x46ab3f
jmp 0x46a890
mov edx, dword [esp + 0x4c]
mov edx, dword [edx + 0x6c]
lea edi, [esi + esi*2]
cmp dword [esp + 0x28], 0xffffffff
lea edx, [edx + edi*4]
mov ebx, edx
mov edx, dword [ebx]
mov dword [esp + 0x10], edx
mov edi, dword [ebx + 4]
mov dword [esp + 0x14], edi
mov ebx, dword [ebx + 8]
mov dword [esp + 0x18], ebx
je 0x46aa63
lea edx, [eax + eax*4]
lea esi, [edx + edx*8]
shl esi, 1
sub esi, eax
shl esi, 2
mov ax, word [esi + ecx + 0xe0]
mov dx, word [esi + ecx + 0xde]
push eax
mov ax, word [esi + ecx + 0xdc]
push edx
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.004cbb50
lea edx, [esp + 0x98]
push edx
call fcn.004cb540
fld dword [esp + 0xa4]
fmul dword [esp + 0x2c]
fld dword [esp + 0xa0]
fmul dword [esp + 0x28]
mov ecx, dword [ebp + 0xd8]
add esp, 0x14
faddp st(1)
fld dword [esp + 0x88]
fmul dword [esp + 0x10]
lea eax, [esi + ecx + 0x34]
faddp st(1)
mov edx, dword [eax]
mov dword [esp + 0x7c], edx
fstp dword [esp + 0x54]
fld dword [esp + 0x98]
fmul dword [esp + 0x14]
fld dword [esp + 0x94]
fmul dword [esp + 0x10]
mov edx, dword [eax + 4]
faddp st(1)
fld dword [esp + 0x9c]
fmul dword [esp + 0x18]
mov eax, dword [eax + 8]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x84], eax
faddp st(1)
mov dword [esp + 0x30], edx
fstp dword [esp + 0x58]
fld dword [esp + 0xa8]
fmul dword [esp + 0x18]
fld dword [esp + 0xa4]
fmul dword [esp + 0x14]
mov eax, dword [esp + 0x58]
faddp st(1)
fld dword [esp + 0xa0]
fmul dword [esp + 0x10]
mov dword [esp + 0x34], eax
lea eax, [esi + ecx + 0x108]
faddp st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x7c]
fadd dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], edx
mov edx, dword [eax]
mov dword [esp + 0x70], edx
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [esp + 0x80]
mov edx, dword [eax + 4]
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fadd dword [esp + 0x84]
fstp dword [esp + 0x38]
fld dword [esp + 0x70]
fadd dword [esp + 0x30]
mov eax, dword [eax + 8]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], edx
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
fld dword [esp + 0x20]
fadd dword [esp + 0x74]
mov dword [esp + 0x24], edx
mov eax, dword [esi + ecx + 0xb8]
mov edx, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esp + 0x10], edx
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [esp + 0x78]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], edi
fstp dword [esp + 0x24]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
jne 0x46a8ba
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x46aa94
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x46aa94
test esi, esi
jne 0x46aa94
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
jmp 0x46ab24
fld dword [esp + 0x10]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 1
je 0x46aaad
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
jmp 0x46aac4
fld dword [esp + 0x10]
fcomp dword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x46aac4
mov edx, dword [esp + 0x10]
mov dword [esp + 0x60], edx
fld dword [esp + 0x14]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x46aadd
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
jmp 0x46aaf4
fld dword [esp + 0x14]
fcomp dword [esp + 0x64]
fnstsw ax
test ah, 0x41
jne 0x46aaf4
mov edx, dword [esp + 0x14]
mov dword [esp + 0x64], edx
fld dword [esp + 0x18]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x46ab0d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
jmp 0x46ab24
fld dword [esp + 0x18]
fcomp dword [esp + 0x68]
fnstsw ax
test ah, 0x41
jne 0x46ab24
mov edx, dword [esp + 0x18]
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x4c]
inc esi
mov dword [esp + 0x48], esi
mov edx, dword [eax + 0x90]
mov eax, dword [esp + 0x28]
cmp esi, edx
jl 0x46a88c
mov ecx, dword [ebp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x46a85e
mov esi, dword [esp + 0x13c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jle 0x46a824
fld dword [esp + 0x60]
fadd dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x68]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fadd dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fadd dword [esp + 0x44]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
fstp dword [esp + 0x38]
fld dword [esp + 0x30]
fmul dword [0x51d830]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fmul dword [0x51d830]
mov eax, dword [esp + 0x1c]
mov dword [esi], eax
mov dword [esp + 0xac], eax
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul dword [0x51d830]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], ecx
mov dword [esp + 0xb0], ecx
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov dword [esp + 0xb4], edx
mov dword [esi + 8], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 0x2c], edi
cmp eax, edi
jl 0x46aecd
fild dword [esp + 0x2c]
lea ecx, [esp + 0xb8]
push ebp
push ecx
push ecx
fstp dword [esp]
call fcn.0047cfa0
lea edx, [esp + 0xc4]
push 0xffffffffffffffff
push edx
push ebp
call fcn.0047e250
mov eax, dword [ebp + 0x38]
xor esi, esi
add esp, 0x18
cmp eax, esi
mov dword [esp + 0x28], esi
jle 0x46aeb8
mov dword [esp + 0x4c], esi
mov ecx, dword [ebp + 0xd8]
mov edi, esi
add edi, ecx
xor ebx, ebx
mov dword [esp + 0x48], ebx
cmp dword [edi + 0x90], ebx
jle 0x46ae9a
mov ecx, dword [edi + 0x6c]
mov eax, ebx
add eax, ecx
cmp esi, 0xfffffe9c
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x18], eax
je 0x46ae58
mov eax, dword [ebp + 0xd8]
lea edx, [ecx + ecx*4]
lea esi, [edx + edx*8]
shl esi, 1
sub esi, ecx
shl esi, 2
mov cx, word [esi + eax + 0xe0]
mov dx, word [esi + eax + 0xde]
mov ax, word [esi + eax + 0xdc]
push ecx
push edx
lea ecx, [esp + 0x90]
push eax
push ecx
call fcn.004cbb50
lea edx, [esp + 0x98]
push edx
call fcn.004cb540
fld dword [esp + 0x24]
fmul dword [esp + 0x9c]
fld dword [esp + 0x28]
fmul dword [esp + 0xa0]
mov eax, dword [ebp + 0xd8]
add esp, 0x14
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x90]
lea ecx, [esi + eax + 0x34]
faddp st(1)
mov edx, dword [ecx]
mov dword [esp + 0x70], edx
fstp dword [esp + 0x54]
fld dword [esp + 0x18]
fmul dword [esp + 0x9c]
fld dword [esp + 0x10]
fmul dword [esp + 0x94]
mov edx, dword [ecx + 4]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x98]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x78], ecx
faddp st(1)
mov dword [esp + 0x3c], edx
fstp dword [esp + 0x58]
fld dword [esp + 0x10]
fmul dword [esp + 0xa0]
fld dword [esp + 0x14]
fmul dword [esp + 0xa4]
mov ecx, dword [esp + 0x58]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0xa8]
mov dword [esp + 0x40], ecx
lea ecx, [esi + eax + 0x108]
faddp st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x70]
fadd dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x44], edx
mov edx, dword [ecx]
mov dword [esp + 0x7c], edx
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fadd dword [esp + 0x74]
mov edx, dword [ecx + 4]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fadd dword [esp + 0x78]
fstp dword [esp + 0x44]
fld dword [esp + 0x7c]
fadd dword [esp + 0x3c]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
fld dword [esp + 0x20]
fadd dword [esp + 0x80]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [esp + 0x84]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
fstp dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + eax + 0xb8]
cmp ecx, 0xffffffff
jne 0x46acaf
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0x10]
lea eax, [esp + 0xac]
push edx
push eax
call fcn.004cb2e0
fcom dword [esp + 0x74]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x46ae7e
fstp dword [esp + 0x6c]
jmp 0x46ae80
fstp st(0)
mov eax, dword [esp + 0x48]
mov ecx, dword [edi + 0x90]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x48], eax
jl 0x46ac7e
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x38]
inc eax
add esi, 0x164
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x4c], esi
jl 0x46ac62
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x50]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jle 0x46ac24
fld dword [esp + 0x6c]
fadd dword [0x51dc40]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
fld st(0)
pop ebx
fstp dword [ecx]
add esp, 0x120
ret