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

Disassembly:
sub esp, 0x58
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx]
xor ebp, ebp
fild dword [ebx + 0x18]
mov esi, dword [eax + 0x20]
xor ecx, ecx
cmp esi, ebp
push edi
fstp dword [esp + 0x14]
setne cl
push ecx
mov ecx, dword [0x680038]
mov dword [esp + 0x28], 0x3f800000
mov dword [esp + 0x20], ebp
call fcn.005365d0
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x3c], eax
cmp edi, ebp
mov dword [ebx + 0x444], ebp
mov dword [esp + 0x10], edi
je 0x52990d
mov eax, dword [esp + 0x78]
mov ecx, dword [ebx]
push 3
call fcn.0052b280
mov dword [esp + 0x38], eax
mov eax, dword [ebx]
cmp dword [eax + 0x20], ebp
je 0x52955a
fld dword [esp + 0x14]
fmul dword [eax + 0x24]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x24], edx
fstp dword [esp + 0x14]
mov esi, dword [esp + 0x70]
cmp esi, ebp
jne 0x529588
mov ecx, dword [0x68b18c]
xor eax, eax
mov dword [esp + 0x18], eax
mov edx, dword [ecx + 0x41a38]
mov ecx, dword [ecx + 0x41a3c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edx
jmp 0x5295f4
mov ecx, dword [esi + 4]
mov ebp, dword [0x68b18c]
mov eax, ecx
sub eax, 0x7fffffff
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi]
mov edx, ecx
sub edx, 0x7fffffff
neg edx
sbb edx, edx
and edx, ecx
mov ecx, dword [esi + 0xc]
cmp ecx, 0x7fffffff
mov dword [esp + 0x18], edx
jne 0x5295c3
mov ecx, dword [ebp + 0x41a3c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 8]
cmp ecx, 0x7fffffff
jne 0x5295d8
mov ecx, dword [ebp + 0x41a38]
cmp edx, ecx
mov dword [esp + 0x30], ecx
jae 0x529903
cmp eax, dword [esp + 0x20]
jae 0x529903
sub ecx, edx
mov dword [esp + 0x70], ecx
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
fild qword [esp + 0x40]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
cmp ebp, 4
fstp dword [esp + 0x34]
fild qword [esp + 0x40]
fstp dword [esp + 0x44]
je 0x529628
cmp ebp, 5
jne 0x529645
mov eax, dword [esp + 0x6c]
push esi
push eax
mov ecx, ebx
call fcn.005289c0
mov dword [esp + 0x78], eax
fild dword [esp + 0x78]
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
cmp ebp, 3
jne 0x529667
mov ecx, dword [esp + 0x6c]
push esi
push ecx
mov ecx, ebx
call fcn.005289c0
mov dword [esp + 0x78], eax
fild dword [esp + 0x78]
fadd dword [esp + 0x44]
fstp dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
cmp word [edx], 0
je 0x5298c5
mov ax, word [edi]
cmp ax, 0xa
jne 0x52968a
add edi, 2
mov dword [esp + 0x10], edi
jmp 0x5298b9
cmp ax, 0x20
jne 0x52969d
add edi, 2
cmp word [edi], 0x20
je 0x529690
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
fild qword [esp + 0x48]
mov dword [esp + 0x78], eax
xor ebp, ebp
mov dword [esp + 0x6c], 0
mov dword [esp + 0x2c], 1
fstp dword [esp + 0x28]
fld dword [0x60477c]
fcomp dword [esp + 0x28]
mov esi, edi
fnstsw ax
test ah, 5
jp 0x529756
mov di, word [esi]
cmp di, 0x20
je 0x529707
test di, di
je 0x529707
cmp di, 0xa
je 0x529707
mov dx, word [esi + 2]
mov ecx, ebx
push edx
push edi
call fcn.00527630
fadd dword [esp + 0x6c]
fstp dword [esp + 0x6c]
jmp 0x529738
fld dword [esp + 0x6c]
mov dword [esp + 0x78], esi
mov dword [esp + 0x2c], 0
call fcn.0058c3f0
fild dword [ebx + 0xc]
test di, di
mov ebp, eax
fmul dword [esp + 0x24]
fadd dword [esp + 0x6c]
fstp dword [esp + 0x6c]
je 0x52974a
cmp di, 0xa
je 0x52974a
fld dword [esp + 0x6c]
fcomp dword [esp + 0x28]
add esi, 2
fnstsw ax
test ah, 5
jnp 0x5296dc
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x52977b
mov ax, word [esi]
cmp ax, 0x20
je 0x529777
test ax, ax
je 0x529777
cmp ax, 0xa
je 0x529777
mov ax, word [esi + 2]
add esi, 2
cmp ax, 0x20
jne 0x52975f
mov dword [esp + 0x78], esi
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, ecx
jne case.0x52978f.4
mov eax, dword [esp + 0x74]
dec eax
cmp eax, 4
ja case.0x52978f.4
jmp dword [eax*4 + 0x529920]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
sub eax, ebp
mov dword [esp + 0x54], ecx
shr eax, 1
add eax, edx
mov dword [esp + 0x50], eax
fild qword [esp + 0x50]
jmp 0x5297ca
mov edx, dword [esp + 0x30]
mov dword [esp + 0x5c], ecx
sub edx, ebp
mov dword [esp + 0x58], edx
fild qword [esp + 0x58]
jmp 0x5297ca
fld dword [esp + 0x34]
mov eax, dword [esp + 0x78]
fstp dword [esp + 0x40]
cmp edi, eax
je 0x52988e
mov cx, word [edi]
test cx, cx
je 0x52988e
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x529861
mov esi, dword [ebx + 0x24]
mov eax, ecx
and eax, 0xffff
mov edx, eax
and eax, 0xff
shr edx, 8
mov edx, dword [esi + edx*4]
xor esi, esi
cmp cx, 0x20
mov si, word [edx + eax*2]
je 0x529861
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x80]
cmp eax, ecx
jge 0x529861
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x529834
mov ecx, dword [ebx]
push esi
call fcn.0052b160
movsx edi, ax
jmp 0x529836
xor edi, edi
fld dword [esp + 0x44]
call fcn.0058c3f0
fld dword [esp + 0x40]
push eax
call fcn.0058c3f0
mov ecx, dword [ebx]
sub eax, edi
push eax
push esi
call fcn.0052b7b0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
inc eax
mov dword [esp + 0x1c], eax
mov cx, word [edi + 2]
mov dx, word [edi]
push ecx
push edx
mov ecx, ebx
call fcn.00527630
fadd dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
lea eax, [edi + 2]
cmp eax, ecx
mov dword [esp + 0x10], eax
mov edi, eax
fstp dword [esp + 0x40]
jne 0x5297da
fld dword [esp + 0x44]
fadd dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], eax
fstp dword [esp + 0x44]
fild qword [esp + 0x60]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 5
jnp 0x5298c5
cmp word [edi], 0
jne 0x529675
jmp 0x5298d5
cmp word [edi], 0
je 0x5298d5
mov dword [ebx + 0x444], 1
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [ebx]
call fcn.0052b280
mov edx, dword [esp + 0x3c]
mov ecx, dword [0x680038]
push edx
call fcn.005365d0
fld dword [esp + 0x44]
fsub dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x18
mov dword [ebx + 0x444], 1
fld dword [0x60477c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x18