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

Disassembly:
sub esp, 0x7c
mov eax, dword [esp + 0x84]
push ebx
mov ebx, ecx
push ebp
movsx ecx, word [eax + 0x54]
mov eax, dword [eax + 0x5c]
push esi
imul eax, ecx
cdq
idiv ecx
push edi
mov dword [esp + 0x34], ebx
mov ebp, eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x70], ebp
lea ecx, [eax + 0xc]
lea edx, [eax + 0x76]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
movsx ecx, word [eax + 0x74]
movsx edx, word [eax + 0x8e]
add eax, 0xa0
mov dword [esp + 0x88], edx
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xfa4]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0xfa8]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xbc]
mov dword [eax], 0
lea eax, [edx + ecx]
cmp eax, 0x80
jne 0x47e83e
mov ecx, ebx
call fcn.0047d8a0
mov ecx, dword [ebx + 0x834]
mov edx, dword [ebx + 0x838]
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x60]
push eax
push ecx
push 0
push 0
mov ecx, ebx
mov dword [esp + 0x58], edx
call fcn.0047d7a0
lea edx, [ebp - 1]
lea eax, [esp + 0x58]
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x68]
fild dword [esp + 0x44]
push eax
push ecx
push 0
mov ecx, ebx
fstp dword [esp + 0x50]
mov esi, dword [esp + 0x50]
push esi
call fcn.0047d7a0
lea edx, [ebp - 1]
lea eax, [esp + 0x5c]
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x6c]
fild dword [esp + 0x44]
push eax
push ecx
mov ecx, ebx
fstp dword [esp + 0x4c]
mov edi, dword [esp + 0x4c]
push edi
push 0
call fcn.0047d7a0
lea edx, [esp + 0x54]
lea eax, [esp + 0x64]
push edx
push eax
push edi
push esi
mov ecx, ebx
call fcn.0047d7a0
fld dword [esp + 0x40]
fcomp dword [0x51c900]
fld dword [esp + 0x48]
fnstsw ax
fcomp dword [0x51c900]
test ah, 0x41
fnstsw ax
jne 0x47e181
test ah, 0x41
jne 0x47e160
fld dword [esp + 0x5c]
fsub dword [0x51c920]
call fcn.004c22c8
fld dword [esp + 0x58]
mov edi, eax
sub edi, 0xc350
mov dword [esp + 0x24], edi
jmp 0x47e1c6
fld dword [esp + 0x54]
fsub dword [0x51c920]
call fcn.004c22c8
fld dword [esp + 0x50]
mov edi, eax
sub edi, 0xc350
mov dword [esp + 0x24], edi
jmp 0x47e1c6
test ah, 0x41
jne 0x47e1a7
fld dword [esp + 0x50]
fsub dword [0x51c920]
call fcn.004c22c8
fld dword [esp + 0x54]
mov edi, eax
sub edi, 0xc350
mov dword [esp + 0x24], edi
jmp 0x47e1c6
fld dword [esp + 0x58]
fsub dword [0x51c920]
call fcn.004c22c8
fld dword [esp + 0x5c]
mov edi, eax
sub edi, 0xc350
mov dword [esp + 0x24], edi
fsub dword [0x51c920]
call fcn.004c22c8
fld dword [esp + 0x60]
fsub dword [esp + 0x64]
sub eax, 0xc34f
mov dword [esp + 0x18], eax
fabs
call fcn.004c22c8
fld dword [esp + 0x68]
fsub dword [esp + 0x6c]
mov esi, eax
add esi, 5
fabs
call fcn.004c22c8
add eax, 5
cmp eax, esi
jle 0x47e206
mov esi, eax
shl esi, 2
push esi
call fcn.00471ef0
add esp, 4
mov dword [esp + 0x48], eax
push esi
call fcn.00471ef0
add esp, 4
mov dword [esp + 0x1c], eax
push esi
call fcn.00471ef0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
push ebp
push ebp
push 0
push 0
push edi
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0047dbb0
test eax, eax
je 0x47e280
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
sub edx, esi
mov esi, dword [esp + 0x1c]
lea ecx, [edx*4 + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0xb64]
mov edx, dword [esp + 0x10]
xor edi, edi
mov ebp, esi
cmp eax, edi
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], edx
jne 0x47e2a9
cmp eax, edi
je 0x47e2b3
cmp eax, 2
je 0x47e2b3
cmp eax, 1
jne 0x47e2cc
lea eax, [ebx + 0xba4]
mov ecx, 0x80
mov dword [eax + 0x200], edi
mov dword [eax], edi
add eax, 4
dec ecx
jne 0x47e2be
mov edi, dword [esp + 0xa4]
mov ecx, 0x4000
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x47e595
jmp 0x47e2f6
mov edx, dword [esp + 0x10]
cmp edx, esi
jl 0x47e321
mov edi, dword [esp + 0x48]
sub edx, esi
mov esi, dword [esp + 0x1c]
lea ecx, [edx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ebx, esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
jl 0x47e35a
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
sub eax, ebp
lea ecx, [eax*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov esi, ebp
cmp ecx, eax
mov dword [esp + 0x14], esi
je 0x47e3a4
mov eax, dword [esp + 0x70]
dec ecx
push eax
push eax
push 0
push 0
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0xa8]
push eax
push ecx
mov ecx, dword [esp + 0x54]
push edx
call fcn.0047dbb0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x10]
cmp eax, esi
jl 0x47e57c
mov edx, dword [esp + 0x48]
mov ecx, esi
sub ecx, ebx
mov dword [esp + 0x30], esi
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x28]
mov ecx, esi
mov dword [esp + 0x40], eax
sub ecx, ebp
cmp esi, ebx
lea eax, [edx + ecx*4]
mov dword [esp + 0x44], eax
jg 0x47e3e2
mov dword [esp + 0x30], ebx
cmp ebp, dword [esp + 0x30]
jle 0x47e3ec
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jg 0x47e3fa
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
cmp ecx, eax
jle 0x47e40a
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x24]
mov edi, esi
lea eax, [ecx + 0x4000]
cdq
xor eax, edx
sub eax, edx
and eax, 0x7f
xor eax, edx
sub eax, edx
shl eax, 7
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
cmp esi, eax
jg 0x47e57c
mov ebp, dword [esp + 0x74]
lea eax, [edi + 0x4000]
cdq
fld dword [0x51c8f0]
xor eax, edx
sub eax, edx
and eax, 0x7f
xor eax, edx
mov ecx, eax
sub ecx, edx
mov edx, dword [esp + 0x78]
add ecx, edx
mov edx, dword [esp + 0x7c]
cmp byte [ecx + edx], 0
je 0x47e46b
fstp st(0)
fld dword [0x51c924]
mov eax, dword [esp + 0x38]
movsx ebx, word [eax + ecx*2]
cmp edi, dword [esp + 0x30]
jl 0x47e4bd
cmp edi, dword [esp + 0x3c]
jg 0x47e4bd
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
fld dword [edx]
fadd dword [eax]
fld dword [ebp]
fxch st(1)
fmul dword [0x51c8f4]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x47e4ab
fstp st(0)
fld dword [0x51c924]
jmp 0x47e4c3
fcomp dword [ebp]
fnstsw ax
test ah, 0x41
jne 0x47e4bd
fld dword [0x51c8f0]
jmp 0x47e4c3
fld dword [0x51c900]
cmp edi, esi
jle 0x47e503
cmp edi, dword [esp + 0x10]
jge 0x47e503
fld dword [ebp + 4]
fadd dword [ebp - 4]
fld dword [ebp]
fxch st(1)
fmul dword [0x51c8f4]
fxch st(1)
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x47e4f3
fstp st(0)
fsub dword [0x51c8f0]
jmp 0x47e503
fcomp dword [ebp]
fnstsw ax
test ah, 0x41
jne 0x47e503
fsub dword [0x51c924]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
fxch st(1)
fmul st(1)
fxch st(1)
fstp st(0)
mov eax, 4
add ebp, eax
add esi, eax
add edx, eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], esi
fld dword [eax + ecx*4]
fadd st(1)
fstp dword [eax + ecx*4]
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov eax, dword [esp + 0x34]
je 0x47e559
fadd dword [eax + ebx*4 + 0xba4]
fstp dword [eax + ebx*4 + 0xba4]
jmp 0x47e567
fadd dword [eax + ebx*4 + 0xda4]
fstp dword [eax + ebx*4 + 0xda4]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc edi
cmp edi, eax
jle 0x47e439
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
dec eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jge 0x47e2f2
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x38]
xor edi, edi
xor ebp, ebp
lea edx, [ecx + 4]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
lea ecx, [eax + 2]
mov esi, 0x2000
fld dword [edx]
fabs
fcomp qword [0x51c928]
fnstsw ax
test ah, 0x41
jne 0x47e5f7
movsx eax, word [ecx]
inc ebp
fld dword [ebx + eax*4 + 0xda4]
fcomp dword [0x51c900]
fld dword [edx]
fnstsw ax
fcomp dword [0x51c900]
test ah, 1
fnstsw ax
je 0x47e5f1
test ah, 1
je 0x47e5f7
jmp 0x47e5f6
test ah, 0x41
jne 0x47e5f7
inc edi
add ecx, 4
add edx, 8
dec esi
jne 0x47e5b7
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov esi, 0x2000
fld dword [edx]
fabs
fcomp qword [0x51c930]
fnstsw ax
test ah, 0x41
jne 0x47e658
movsx eax, word [ecx]
inc ebp
fld dword [ebx + eax*4 + 0xba4]
fcomp dword [0x51c900]
fld dword [edx]
fnstsw ax
fcomp dword [0x51c900]
test ah, 1
fnstsw ax
je 0x47e652
test ah, 1
je 0x47e658
jmp 0x47e657
test ah, 0x41
jne 0x47e658
inc edi
add ecx, 4
add edx, 8
dec esi
jne 0x47e618
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebp
mov dword [ecx], ebp
call fcn.00471f20
mov eax, dword [esp + 0x20]
add esp, 4
push eax
call fcn.00471f20
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
call fcn.00471f20
mov esi, dword [esp + 0xbc]
mov eax, dword [esp + 0xb4]
add esp, 4
cmp eax, 2
mov dword [esi], 0
jne 0x47e6b9
mov edi, 0x5dc
jmp 0x47e6bb
xor edi, edi
cmp ebp, edi
jle 0x47e6f0
fild dword [esp + 0x40]
fild dword [esp + 0x44]
cmp dword [esp + 0xb0], 2
fmul dword [0x51c938]
fxch st(1)
fdivp st(1)
fst dword [esp + 0x7c]
fstp dword [esi]
jne 0x47e6f0
mov edx, dword [esp + 0x7c]
push ebp
push edx
mov ecx, ebx
call fcn.0047e850
fstp dword [esi]
fld dword [esi]
fcomp dword [esp + 0xb4]
fnstsw ax
test ah, 0x41
mov ax, word [esp + 0xac]
jne 0x47e711
cmp ebp, edi
jle 0x47e711
test ax, ax
je 0x47e720
mov ecx, dword [esp + 0xb0]
test ecx, ecx
jne 0x47e81f
mov ecx, dword [ebx + 0xb64]
mov dword [ebx + 0x2250], 0
test ecx, ecx
mov dword [ebx + 0x2254], 0
jne 0x47e75a
test ax, ax
jne 0x47e75a
mov edi, dword [esp + 0x4c]
mov ecx, 0x80
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 0xb64], 1
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0xa4]
mov edi, dword [esp + 0x4c]
mov esi, 0x4000
movsx eax, word [edx]
fld dword [ecx]
fadd dword [edi + eax*4]
lea eax, [edi + eax*4]
add ecx, 4
add edx, 2
dec esi
fstp dword [eax]
jne 0x47e76e
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x88]
mov esi, edi
mov edi, dword [esp + 0x84]
xor edx, edx
sub edi, ecx
fld dword [esi]
fabs
fadd qword [ebx + 0x2250]
cmp edx, ebp
fstp qword [ebx + 0x2250]
fld dword [esi]
fcomp qword [0x51c910]
fnstsw ax
jge 0x47e7ce
test ah, 0x41
jne 0x47e7c8
mov byte [edi + ecx], 1
jmp 0x47e7e1
mov byte [edi + ecx], 0
jmp 0x47e7e1
test ah, 0x41
mov eax, ecx
jne 0x47e7dc
sub eax, ebp
mov byte [eax], 1
jmp 0x47e7e1
sub eax, ebp
mov byte [eax], 0
inc edx
add esi, 4
inc ecx
cmp edx, 0x80
jl 0x47e79f
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x4c]
push 0x80
push ecx
push edx
mov ecx, ebx
call fcn.0047e9b0
mov eax, dword [esp + 0x9c]
fstp dword [eax]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x30
fld dword [esi]
fcomp dword [esp + 0xb4]
fnstsw ax
test ah, 0x41
jne 0x47e83e
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret 0x30