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

Disassembly:
sub esp, 0x80
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x487c40
push ebx
push esi
mov esi, dword [esp + 0x90]
movzx eax, byte [esi + 0x26]
dec eax
push edi
je 0x4876b7
dec eax
jne 0x487c2b
mov esi, dword [esi + 0x38]
mov ebx, dword [esp + 0x9c]
add esi, 4
test ebx, ebx
mov ecx, 7
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
je 0x487518
mov al, byte [esp + 0xa0]
test al, al
jne 0x487518
lea eax, [esp + 0x58]
push eax
mov ecx, eax
push ebx
push ecx
call fcn.00437c90
add esp, 0xc
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x487539
call fcn.00401440
cmp eax, 6
jle 0x487539
lea esi, [ebp + 0x34]
mov ecx, 7
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
jmp 0x48754a
mov ecx, dword [ebp + 0x68]
lea edx, [esp + 0x74]
push edx
lea eax, [ebp + 0x34]
push eax
call fcn.00459b70
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0x94]
shl ecx, 8
shl edx, 8
mov dword [esp + 0x88], ecx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x84], edx
test byte [ecx + 0x94], 0xc
je 0x487599
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
imul edx, edx, 0xff
mov dword [esp + 0x68], edx
imul eax, eax, 0xff
jmp 0x4875ab
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
shl ecx, 8
mov dword [esp + 0x68], ecx
shl eax, 8
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x78]
mov dword [esp + 0x70], eax
push edx
mov eax, ecx
push eax
call fcn.00437c90
add esp, 0xc
test ebx, ebx
je 0x487643
mov al, byte [esp + 0xa0]
test al, al
je 0x487643
mov ecx, 7
mov esi, ebx
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx + 0x38]
test byte [edx + 0x94], 0xc
je 0x487611
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
imul eax, eax, 0xff
imul ecx, ecx, 0xff
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
jmp 0x487627
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
shl ecx, 8
shl eax, 8
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, edx
push ecx
call fcn.00437c90
mov esi, dword [esp + 0xa0]
add esp, 0xc
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x487664
call fcn.00401440
cmp eax, 6
jle 0x487664
mov ecx, dword [ebp + 0x68]
lea edx, [esp + 0x58]
push edx
mov eax, edx
push eax
call fcn.00459b70
mov ebp, dword [ebp + 0x28]
test ebp, ebp
je 0x487673
mov ebp, dword [ebp + 0xb4]
jmp 0x487675
xor ebp, ebp
mov ecx, dword [esi + 0x38]
push ebp
add ecx, 0x20
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00438fa0
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x38]
add esp, 0xc
cmp ecx, 1
jne 0x4876a1
add eax, 0x20
push eax
call fcn.00437660
add esp, 4
mov eax, dword [esi + 0x38]
mov esi, dword [esp + 0x94]
mov dword [eax + 0x38], 2
jmp 0x487c2b
mov ecx, dword [ebp + 0x28]
call fcn.00401440
mov ebx, dword [esp + 0x9c]
test ebx, ebx
mov edi, eax
mov dword [esp + 0x38], edi
jne 0x487704
cmp edi, 8
jl 0x487704
mov ecx, dword [ebp + 0x28]
mov edx, dword [ecx + 0xb4]
mov eax, dword [esi + 0x38]
push edx
mov edx, dword [ebp + 0x68]
lea ecx, [eax + 0x24]
push ecx
mov ecx, dword [edx]
push ecx
add eax, 8
push eax
lea edx, [ebp + 0x34]
push edx
call fcn.00475e00
add esp, 0x14
test al, al
jne 0x487bd5
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x487727
cmp edi, 6
jle 0x487727
lea esi, [ebp + 0x34]
mov ecx, 7
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x94]
jmp 0x487738
lea eax, [esp + 0x58]
push eax
lea ecx, [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0x68]
call fcn.00459b70
mov esi, dword [esi + 0x38]
add esi, 8
test ebx, ebx
mov ecx, 7
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
je 0x487769
mov al, byte [esp + 0xa0]
test al, al
jne 0x487769
lea edx, [esp + 0x3c]
push edx
mov eax, edx
push ebx
push eax
call fcn.00437b40
add esp, 0xc
mov ecx, dword [esp + 0x4c]
mov eax, 0x7fff
cmp ecx, eax
jg 0x4877c2
mov ecx, dword [esp + 0x50]
cmp ecx, eax
jg 0x4877c2
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x4c]
mov edx, ecx
mov ecx, dword [esp + 0x68]
shl ecx, 0x10
shl edx, 0x10
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x3c]
shl eax, 0x10
mov dword [esp + 0x50], edx
push ecx
lea edx, [esp + 0x5c]
mov dword [esp + 0x70], eax
push edx
mov eax, ecx
shl esi, 0x10
push eax
mov dword [esp + 0x58], esi
call fcn.00437c90
add esp, 0xc
jmp 0x487b0f
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x48794a
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x48794a
mov ecx, eax
call fcn.00497d50
test al, al
je 0x48794a
mov eax, dword [esp + 0x54]
mov esi, 1
cmp eax, esi
je 0x487804
lea ecx, [esp + 0x3c]
push ecx
call fcn.00437620
add esp, 4
cmp dword [esp + 0x70], esi
je 0x487817
lea edx, [esp + 0x58]
push edx
call fcn.00437620
add esp, 4
fld dword [esp + 0x58]
mov dword [esp + 0x1c], 0
fmul dword [esp + 0x3c]
fld dword [esp + 0x64]
fmul dword [esp + 0x48]
fld dword [0x53d7c0]
fild dword [esp + 0x4c]
fst dword [esp + 0x20]
fmul dword [esp + 0x58]
fiadd dword [esp + 0x68]
fstp dword [esp + 0x14]
fild dword [esp + 0x50]
fst dword [esp + 0x24]
fmul dword [esp + 0x64]
fiadd dword [esp + 0x6c]
fstp dword [esp + 0x10]
fld dword [0x53d7c0]
fld dword [esp + 0x40]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4878a9
fld dword [0x53d7c0]
fld dword [esp + 0x44]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4878a9
fld dword [0x53d7c0]
fld dword [esp + 0x5c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4878a9
fld dword [0x53d7c0]
fld dword [esp + 0x60]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x487907
fstp st(0)
fld dword [esp + 0x60]
fmul dword [esp + 0x40]
faddp st(2)
fld dword [esp + 0x5c]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esp + 0x64]
fld dword [esp + 0x5c]
fmul dword [esp + 0x3c]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [esp + 0x48]
fld dword [esp + 0x44]
fmul dword [esp + 0x58]
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x24]
fmul dword [esp + 0x60]
fadd dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fmul dword [esp + 0x5c]
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
fxch st(2)
fstp dword [esp + 0x3c]
mov dword [esp + 0x44], eax
fxch st(1)
fstp dword [esp + 0x40]
fstp dword [esp + 0x48]
fld dword [esp + 0x10]
fmul dword [0x540250]
call fcn.004ae0e0
fld dword [esp + 0x14]
fmul dword [0x540250]
mov dword [esp + 0x50], eax
call fcn.004ae0e0
mov dword [esp + 0x54], esi
jmp 0x487b0b
mov eax, dword [esp + 0x54]
mov esi, 1
cmp eax, esi
jne 0x487964
lea ecx, [esp + 0x3c]
push ecx
call fcn.00437660
add esp, 4
cmp dword [esp + 0x70], esi
jne 0x487977
lea edx, [esp + 0x58]
push edx
call fcn.00437660
add esp, 4
fild dword [esp + 0x58]
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x30], 0
fmul dword [0x540254]
mov dword [esp + 0x34], 0
fstp dword [esp + 0x10]
fild dword [esp + 0x3c]
fmul dword [0x540254]
fst dword [esp + 0x28]
fmul dword [esp + 0x10]
fild dword [esp + 0x64]
fmul dword [0x540254]
fstp dword [esp + 0x14]
fild dword [esp + 0x48]
fmul dword [0x540254]
fst dword [esp + 0x2c]
fmul dword [esp + 0x14]
fstp dword [esp + 0x1c]
fild dword [esp + 0x4c]
fld dword [esp + 0x10]
fmul st(1)
fiadd dword [esp + 0x68]
fstp dword [esp + 0x24]
fild dword [esp + 0x50]
fld dword [esp + 0x14]
fmul st(1)
fiadd dword [esp + 0x6c]
fstp dword [esp + 0x20]
jne 0x487a13
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x487a13
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x487a13
mov eax, dword [esp + 0x60]
test eax, eax
je 0x487a95
fild dword [esp + 0x60]
fmul dword [0x540254]
fild dword [esp + 0x40]
fmul dword [0x540254]
fld st(0)
fmul st(2)
faddp st(5)
fild dword [esp + 0x5c]
fmul dword [0x540254]
fstp dword [esp + 0x18]
fild dword [esp + 0x44]
fmul dword [0x540254]
fld dword [esp + 0x18]
fmul st(1)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fxch st(1)
fmul dword [esp + 0x14]
fld dword [esp + 0x18]
fmul dword [esp + 0x28]
faddp st(1)
fstp dword [esp + 0x30]
fld st(1)
fmul dword [esp + 0x2c]
fxch st(1)
fmul dword [esp + 0x10]
faddp st(1)
fstp dword [esp + 0x34]
fmul st(1)
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fstp st(0)
fld dword [esp + 0x18]
fmul st(1)
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
jmp 0x487a97
fstp st(0)
fstp st(0)
fmul dword [0x540250]
call fcn.004ae0e0
fld dword [esp + 0x30]
fmul dword [0x540250]
mov dword [esp + 0x3c], eax
call fcn.004ae0e0
fld dword [esp + 0x34]
fmul dword [0x540250]
mov dword [esp + 0x40], eax
call fcn.004ae0e0
fld dword [esp + 0x1c]
fmul dword [0x540250]
mov dword [esp + 0x44], eax
call fcn.004ae0e0
fld dword [esp + 0x20]
fmul dword [0x540250]
mov dword [esp + 0x48], eax
call fcn.004ae0e0
fld dword [esp + 0x24]
fmul dword [0x540250]
mov dword [esp + 0x50], eax
call fcn.004ae0e0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], eax
test ebx, ebx
je 0x487b62
mov al, byte [esp + 0xa0]
test al, al
je 0x487b62
mov esi, ebx
lea eax, [esp + 0x3c]
mov ecx, 7
lea edi, [esp + 0x74]
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x88]
push eax
lea ecx, [esp + 0x78]
push ecx
mov edx, eax
shl ebx, 0x10
shl edi, 0x10
push edx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], edi
call fcn.00437b40
add esp, 0xc
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x487b80
cmp dword [esp + 0x38], 6
jle 0x487b80
lea eax, [esp + 0x3c]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x68]
call fcn.00459b70
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x487b8f
mov eax, dword [eax + 0xb4]
jmp 0x487b91
xor eax, eax
mov esi, dword [esp + 0x94]
mov edx, dword [esi + 0x38]
push eax
add edx, 0x24
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00438fa0
mov eax, dword [esi + 0x38]
mov ecx, dword [eax + 0x3c]
add esp, 0xc
cmp ecx, 1
jne 0x487bc4
add eax, 0x24
push eax
call fcn.00437660
add esp, 4
mov ecx, dword [esi + 0x38]
mov esi, dword [esp + 0x94]
mov dword [ecx + 0x3c], 2
mov ecx, dword [ebp + 0x50]
test ecx, ecx
mov edx, dword [esi + 0x38]
mov eax, dword [edx + 4]
je 0x487bf8
cmp word [ebp + 0x54], 0x100
jl 0x487bf1
cmp word [ebp + 0x56], 0
jge 0x487bf8
mov ecx, 1
jmp 0x487bfa
xor ecx, ecx
mov dl, byte [eax + 0x20]
or dl, cl
mov byte [esi + 0x24], dl
mov cl, byte [eax + 0x29]
test cl, cl
jne 0x487c0e
cmp dword [eax], 0
je 0x487c22
mov al, byte [esp + 0x98]
test al, al
je 0x487c3d
mov ecx, esi
call fcn.0045d3c0
jmp 0x487c2b
push 0
mov ecx, esi
call fcn.00452870
mov al, byte [esp + 0x98]
test al, al
je 0x487c3d
mov ecx, esi
call fcn.0045d3c0
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x80
ret 0x10