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

Disassembly:
sub esp, 0x78
mov ecx, dword [0x66188c]
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
push edi
mov eax, dword [ebp + 0x10]
mov eax, dword [ecx + eax]
fld dword [eax + 0x10]
fmul dword [eax + 0xc]
mov ebx, dword [eax]
test ebx, ebx
fstp dword [esp + 0x20]
jne 0x5d0245
mov edx, dword [0x661228]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
call fcn.005a3330
mov edi, eax
call fcn.005a3330
push edi
push 0x100
mov esi, eax
call fcn.005bb310
push edi
push esi
call fcn.005a2c90
mov eax, dword [ebx + 0x90]
lea ecx, [ebx + 0x90]
add esp, 0x10
cmp eax, ecx
je 0x5d028b
cmp byte [eax - 8], 3
lea edx, [eax - 8]
je 0x5d0417
mov eax, dword [eax]
cmp eax, ecx
jne 0x5d0278
push ebx
call fcn.005a1ce0
add eax, 0x30
push esi
push 1
push eax
lea eax, [esp + 0x74]
push eax
call fcn.005a37d0
add esp, 0x14
push esi
call fcn.005a3300
push edi
call fcn.005a3300
mov eax, dword [ebp + 0x14]
add esp, 8
test al, 0x10
mov dword [esp + 0x14], 3
je 0x5d02cb
mov dword [esp + 0x14], 6
test al, 0x40
je 0x5d02d3
inc dword [esp + 0x14]
mov ecx, dword [ebp + 4]
lea esi, [esp + 0x10]
push 0x800
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
imul esi, ecx
push esi
mov esi, dword [ebp + 0x24]
imul esi, ecx
mov edx, dword [eax]
push esi
push eax
call dword [edx + 0x2c]
test eax, eax
jl 0x5d0b70
mov eax, dword [ebp + 0x1c]
test eax, eax
mov eax, dword [ebp + 8]
je 0x5d07c8
mov ecx, dword [0x661228]
push eax
call dword [ecx + 0x130]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
push 0x800
rep stosb byte es:[edi], al
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
push edx
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
lea edx, [esi + esi]
push edx
push 0
push eax
mov dword [esp + 0x44], esi
call dword [ecx + 0x2c]
xor ecx, ecx
test esi, esi
mov dword [esp + 0x2c], ecx
jle 0x5d07aa
mov dword [esp + 0x1c], 4
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
xor edx, edx
mov dx, word [edi + eax - 4]
cmp byte [edx + ebx], 0
jne 0x5d0792
mov eax, dword [ebp + 0x18]
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp eax, 4
jne 0x5d0473
mov ebx, dword [ebp + 4]
mov edi, 3
mov eax, ebx
imul eax, edx
mov edx, dword [esp + 0x10]
shr eax, 2
lea esi, [edx + eax*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
add ecx, 2
shr eax, 0x1f
add edx, eax
lea eax, [ecx - 1]
lea edx, [edx + edx*2]
mov dword [esp + 0x24], edx
cdq
idiv edi
mov edi, dword [esp + 0x24]
xor eax, eax
add edx, edi
mov edi, dword [esp + 0x18]
mov ax, word [edi + edx*2]
mov edx, dword [esp + 0x10]
imul eax, ebx
shr eax, 2
lea edi, [edx + eax*4]
mov eax, ecx
cdq
mov ecx, 3
idiv ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add edx, eax
xor eax, eax
mov ax, word [ecx + edx*2]
mov edx, dword [esp + 0x10]
imul eax, ebx
shr eax, 2
lea ebx, [edx + eax*4]
jmp 0x5d04f7
test edx, edx
je 0x5d028b
mov dl, byte [edx + 1]
cmp dl, 1
je 0x5d0435
cmp dl, 0x81
je 0x5d0435
cmp dl, 0x82
jne 0x5d028b
push ebx
call fcn.005a1ce0
fld dword [eax + 0x20]
add eax, 0x20
push esi
fchs
fstp dword [esp + 0x78]
fld dword [eax + 4]
fchs
fstp dword [esp + 0x7c]
fld dword [eax + 8]
lea ecx, [esp + 0x78]
push 1
lea edx, [esp + 0x70]
push ecx
fchs
fstp dword [esp + 0x88]
push edx
call fcn.005a37e0
jmp 0x5d02a2
cmp eax, 5
jne 0x5d04f7
mov eax, dword [esp + 0x1c]
cmp eax, 8
jge 0x5d049e
and ecx, 0x80000001
jns 0x5d048e
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x5d0497
mov ecx, eax
lea ebx, [eax - 2]
jmp 0x5d04bb
lea ecx, [eax - 2]
mov ebx, eax
jmp 0x5d04bb
and ecx, 0x80000001
jns 0x5d04ab
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x5d04b5
lea ecx, [eax - 6]
lea ebx, [eax - 8]
jmp 0x5d04bb
lea ecx, [eax - 8]
lea ebx, [eax - 6]
mov eax, dword [ebp + 4]
xor edi, edi
mov esi, eax
imul esi, edx
mov edx, dword [esp + 0x10]
shr esi, 2
lea esi, [edx + esi*4]
mov edx, dword [esp + 0x18]
mov di, word [ecx + edx]
mov ecx, dword [esp + 0x10]
imul edi, eax
shr edi, 2
lea edi, [ecx + edi*4]
xor ecx, ecx
mov cx, word [ebx + edx]
mov edx, dword [esp + 0x10]
imul ecx, eax
shr ecx, 2
lea ebx, [edx + ecx*4]
test byte [ebp + 0x14], 0x10
je 0x5d0514
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jmp 0x5d052c
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
fld dword [esp + 0x64]
fsub dword [esi]
push ecx
fstp dword [esp + 0x38]
fld dword [esi + 4]
fsubr dword [esp + 0x6c]
fstp dword [esp + 0x3c]
fld dword [esi + 8]
fsubr dword [esp + 0x70]
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esp + 0x40]
faddp st(1)
fstp dword [esp]
call fcn.005a3770
fld dword [esp + 0x38]
fmul st(1)
mov eax, dword [esp + 0x18]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x3c]
fmul dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [edi]
fsub dword [esi]
fld dword [edi + 4]
fsub dword [esi + 4]
fld dword [edi + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x88]
fld dword [ebx]
fsub dword [esi]
fstp dword [esp + 0x5c]
fld dword [ebx + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x60]
fld dword [ebx + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x64]
fld dword [ebx + eax*4 + 4]
fsub dword [esi + eax*4 + 4]
fst dword [esp + 0x28]
fmul st(2)
fstp dword [esp + 0x80]
fld dword [esp + 0x28]
fmul st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x28]
fmul dword [esp + 0x88]
fld dword [edi + eax*4 + 4]
fsub dword [esi + eax*4 + 4]
fld dword [esp + 0x5c]
fmul st(1)
fld st(1)
fmul dword [esp + 0x60]
fstp dword [esp + 0x60]
fxch st(1)
fmul dword [esp + 0x64]
fstp dword [esp + 0x64]
fld dword [esp + 0x80]
fsub st(1)
fstp dword [esp + 0x44]
fstp st(0)
fxch st(1)
fsub dword [esp + 0x60]
fstp dword [esp + 0x48]
fsub dword [esp + 0x64]
fstp dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
fld dword [esp + 0x44]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
faddp st(1)
fstp dword [esp]
call fcn.005a3770
fld dword [esp + 0x44]
fmul st(1)
fld dword [esp + 0x48]
fmul st(2)
fld dword [esp + 0x4c]
fmul st(3)
fld st(1)
fmul dword [esp + 0x58]
add esp, 4
fld st(1)
fmul dword [esp + 0x50]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x4c]
fmul st(1)
fld st(3)
fmul dword [esp + 0x54]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
fsubp st(1)
xor eax, eax
mov ax, word [edx + ecx - 4]
fstp dword [esp + 0x74]
fld st(2)
fmul dword [esp + 0x50]
lea ecx, [eax + eax*4]
fld st(2)
fmul dword [esp + 0x4c]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x90]
fsubp st(1)
lea eax, [ecx + eax*4]
mov ecx, dword [esi]
fstp dword [esp + 0x78]
fxch st(1)
fmul dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 8]
fxch st(2)
fmul dword [esp + 0x34]
mov dword [eax + 8], ecx
mov cl, byte [ebp + 0x14]
faddp st(2)
test cl, 0x10
fmul dword [esp + 0x3c]
faddp st(1)
fstp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x38]
fld dword [esp + 0x70]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x78]
fmul dword [esp + 0x3c]
faddp st(1)
je 0x5d072b
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov cl, byte [ebp + 0x14]
test cl, 0x40
je 0x5d0746
mov ecx, dword [esi + 0x18]
mov dword [eax + 0x18], ecx
jmp 0x5d074d
xor ecx, ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov cl, byte [ebp + 0x14]
test cl, 0x40
je 0x5d0746
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x18], ecx
jmp 0x5d074d
mov dword [eax + 0x18], 0xffffffff
mov ecx, dword [esp + 0x14]
fxch st(1)
fmul dword [esp + 0x20]
mov edi, dword [esi + ecx*4]
mov dword [eax + 0x1c], edi
mov edi, dword [esi + ecx*4 + 4]
mov dword [eax + 0x20], edi
fsubr dword [esi + ecx*4]
fstp dword [eax + 0x24]
fmul dword [esp + 0x20]
fsubr dword [esi + ecx*4 + 4]
mov esi, dword [esp + 0x30]
fstp dword [eax + 0x28]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov ax, word [edx + ecx - 4]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov ebx, edx
mov byte [eax + edx], 1
mov edx, dword [esp + 0x1c]
inc ecx
add edx, 2
cmp ecx, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edx
jl 0x5d036e
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [0x661228]
push ebx
call dword [edx + 0x134]
add esp, 4
jmp 0x5d0b66
test eax, eax
mov dword [esp + 0x30], eax
jle 0x5d0b66
mov eax, dword [esp + 0x90]
mov edi, 2
lea ebx, [eax + 0xc]
xor eax, eax
xor esi, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
cmp eax, 4
jne 0x5d086c
mov eax, dword [ebp + 4]
lea ecx, [edi - 2]
imul ecx, eax
mov edx, dword [esp + 0x10]
mov eax, 0x55555556
shr ecx, 2
lea esi, [edx + ecx*4]
lea ecx, [edi - 2]
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edi - 1]
lea ecx, [edx + edx*2]
mov dword [esp + 0x2c], ecx
mov ecx, 3
cdq
idiv ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add edx, ecx
imul edx, dword [ebp + 4]
shr edx, 2
lea ecx, [eax + edx*4]
mov eax, edi
mov dword [esp + 0x24], ecx
mov ecx, 3
cdq
idiv ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add edx, ecx
imul edx, dword [ebp + 4]
shr edx, 2
lea ecx, [eax + edx*4]
mov dword [esp + 0x1c], ecx
jmp 0x5d08f0
cmp eax, 5
jne 0x5d08f0
lea eax, [edi - 2]
cmp eax, 2
jge 0x5d0897
and eax, 0x80000001
jns 0x5d0885
dec eax
or eax, 0xfffffffe
inc eax
je 0x5d088e
mov ecx, edi
lea edx, [edi - 1]
jmp 0x5d08b7
lea ecx, [edi - 1]
mov dword [esp + 0x1c], edi
jmp 0x5d08bb
and eax, 0x80000001
jns 0x5d08a3
dec eax
or eax, 0xfffffffe
inc eax
je 0x5d08b1
lea eax, [edi - 4]
lea ecx, [edi - 3]
mov dword [esp + 0x1c], eax
jmp 0x5d08bb
lea ecx, [edi - 4]
lea edx, [edi - 3]
mov dword [esp + 0x1c], edx
mov eax, dword [ebp + 4]
lea edx, [edi - 2]
imul edx, eax
mov esi, dword [esp + 0x10]
shr edx, 2
lea esi, [esi + edx*4]
mov edx, eax
imul eax, dword [esp + 0x1c]
imul edx, ecx
mov ecx, dword [esp + 0x10]
shr edx, 2
shr eax, 2
lea edx, [ecx + edx*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
test byte [ebp + 0x14], 0x10
je 0x5d090d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
jmp 0x5d0925
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
fld dword [esp + 0x64]
fsub dword [esi]
push ecx
fstp dword [esp + 0x38]
fld dword [esi + 4]
fsubr dword [esp + 0x6c]
fstp dword [esp + 0x3c]
fld dword [esi + 8]
fsubr dword [esp + 0x70]
fstp dword [esp + 0x40]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esp + 0x40]
faddp st(1)
fstp dword [esp]
call fcn.005a3770
fld dword [esp + 0x38]
fmul st(1)
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul st(1)
fstp dword [esp + 0x3c]
fmul dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [eax]
fsub dword [esi]
fld dword [eax + 4]
fsub dword [esi + 4]
fld dword [eax + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x88]
fld dword [ecx]
fsub dword [esi]
fstp dword [esp + 0x5c]
fld dword [ecx + 4]
fsub dword [esi + 4]
fstp dword [esp + 0x60]
fld dword [ecx + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x64]
fld dword [ecx + edx*4 + 4]
fsub dword [esi + edx*4 + 4]
fst dword [esp + 0x28]
fmul st(2)
fstp dword [esp + 0x80]
fld dword [esp + 0x28]
fmul st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x28]
fmul dword [esp + 0x88]
fld dword [eax + edx*4 + 4]
fsub dword [esi + edx*4 + 4]
fld dword [esp + 0x5c]
fmul st(1)
fld st(1)
fmul dword [esp + 0x60]
fstp dword [esp + 0x60]
fxch st(1)
fmul dword [esp + 0x64]
fstp dword [esp + 0x64]
fld dword [esp + 0x80]
fsub st(1)
fstp dword [esp + 0x50]
fstp st(0)
fxch st(1)
fsub dword [esp + 0x60]
fstp dword [esp + 0x54]
fsub dword [esp + 0x64]
fstp dword [esp + 0x58]
fld dword [esp + 0x54]
fmul dword [esp + 0x54]
fld dword [esp + 0x50]
fmul dword [esp + 0x50]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [esp + 0x58]
faddp st(1)
fstp dword [esp]
call fcn.005a3770
fld dword [esp + 0x50]
fmul st(1)
fld dword [esp + 0x54]
fmul st(2)
fld dword [esp + 0x58]
fmul st(3)
fld st(1)
fmul dword [esp + 0x4c]
add esp, 4
fld st(1)
fmul dword [esp + 0x44]
fsubp st(1)
fstp dword [esp + 0x70]
fld dword [esp + 0x40]
fmul st(1)
mov ecx, dword [esi]
mov dword [ebx - 0xc], ecx
mov edx, dword [esi + 4]
fld st(3)
fmul dword [esp + 0x48]
mov dword [ebx - 8], edx
mov eax, dword [esi + 8]
fsubp st(1)
mov dword [ebx - 4], eax
mov al, byte [ebp + 0x14]
test al, 0x10
fstp dword [esp + 0x74]
fld st(2)
fmul dword [esp + 0x44]
fld st(2)
fmul dword [esp + 0x40]
fsubp st(1)
fstp dword [esp + 0x78]
fxch st(1)
fmul dword [esp + 0x38]
fxch st(2)
fmul dword [esp + 0x34]
faddp st(2)
fmul dword [esp + 0x3c]
faddp st(1)
fstp st(1)
fld dword [esp + 0x74]
fmul dword [esp + 0x38]
fld dword [esp + 0x70]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x78]
fmul dword [esp + 0x3c]
faddp st(1)
je 0x5d0b0b
mov ecx, dword [esi + 0xc]
mov dword [ebx], ecx
mov edx, dword [esi + 0x10]
mov dword [ebx + 4], edx
mov eax, dword [esi + 0x14]
mov dword [ebx + 8], eax
mov al, byte [ebp + 0x14]
test al, 0x40
je 0x5d0b24
mov ecx, dword [esi + 0x18]
mov dword [ebx + 0xc], ecx
jmp 0x5d0b2b
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov al, byte [ebp + 0x14]
test al, 0x40
je 0x5d0b24
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xc], edx
jmp 0x5d0b2b
mov dword [ebx + 0xc], 0xffffffff
mov eax, dword [esp + 0x14]
inc edi
fxch st(1)
fmul dword [esp + 0x20]
mov ecx, dword [esi + eax*4]
mov dword [ebx + 0x10], ecx
mov edx, dword [esi + eax*4 + 4]
mov dword [ebx + 0x14], edx
mov ecx, dword [esp + 0x30]
fsubr dword [esi + eax*4]
add ebx, 0x2c
fstp dword [ebx - 0x14]
fmul dword [esp + 0x20]
fsubr dword [esi + eax*4 + 4]
lea eax, [edi - 2]
cmp eax, ecx
fstp dword [ebx - 0x10]
jl 0x5d07e3
mov ebp, dword [ebp + 0x20]
push ebp
mov ecx, dword [ebp]
call dword [ecx + 0x30]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x78
ret