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

Disassembly:
sub esp, 0x84
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
shr eax, 5
test al, 1
je 0x5231c7
mov ecx, dword [0x7c67dc]
mov al, byte [ecx + 0xd8]
test al, al
je 0x5231c7
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x168]
test al, al
je 0x522cc9
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x16c]
test al, al
jne 0x522cc9
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
call dword [edx + 0x170]
test al, al
jne 0x522cc9
mov eax, dword [0x7c67e0]
mov ecx, dword [eax + 0xac]
test ecx, ecx
mov dword [esp + 0x14], 0
je 0x522c8b
test byte [ecx + 0x18], 2
je 0x522c8b
call fcn.004e28b0
fstp dword [esp + 0x14]
mov ecx, dword [0x7c67dc]
push 0x3cb
call fcn.0040f950
xor ecx, ecx
mov cx, word [esi + 0x366]
mov dword [esp + 4], ecx
fild dword [esp + 4]
fmul dword [0x747870]
fmulp st(1)
fsubr dword [esp + 0x14]
fcomp dword [esi + 0x3ac]
fnstsw ax
test ah, 1
jne 0x5231c7
mov edx, dword [esi + 0x14]
push ebx
push ebp
push edi
mov edi, dword [edx + 0x10]
mov eax, dword [edi + 0x74]
test eax, eax
jne 0x522cde
mov eax, 0x7de6cc
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x60], eax
mov ecx, dword [edi + 0x30]
lea ebp, [edi + 0x30]
mov dword [esp + 0x64], ecx
mov edx, dword [ebp + 4]
mov dword [esp + 0x68], edx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov bx, word [esi + 0x24]
push 0x7de6cc
mov ecx, edi
mov dword [esp + 0x70], eax
call fcn.0050e040
mov ecx, dword [esi + 0x14]
add ecx, 0x38
push ecx
mov ecx, ebp
call fcn.0040a7e0
push 0
push 0
push 0
mov ecx, edi
call fcn.006eb000
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x7c]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call fcn.0050e040
lea edx, [esp + 0x64]
push edx
mov ecx, ebp
call fcn.0040a7e0
mov word [esi + 0x24], bx
mov eax, dword [0x7de6cc]
mov ecx, dword [0x7de6d0]
mov edx, dword [0x7de6d4]
mov dword [esp + 0x4c], eax
mov al, byte [esi + 0x7c]
xor bl, bl
test al, al
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jbe 0x5231ba
mov eax, dword [0x7de6cc]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
shr eax, 3
test al, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jne 0x522db6
xor ecx, ecx
mov cx, word [esi + 8]
shr ecx, 0xc
test cl, 1
je 0x522e23
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.00438d80
fcom dword [0x746744]
fnstsw ax
test ah, 0x41
jne 0x522e09
fdivr dword [0x746470]
fld st(0)
fmul dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
jmp 0x522e23
fstp st(0)
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
fld dword [esp + 0x14]
fcomp dword [0x7de6cc]
fnstsw ax
test ah, 0x40
je 0x522e9f
fld dword [esp + 0x18]
fcomp dword [0x7de6d0]
fnstsw ax
test ah, 0x40
je 0x522e9f
fld dword [esp + 0x1c]
fcomp dword [0x7de6d4]
fnstsw ax
test ah, 0x40
je 0x522e9f
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x78]
push eax
mov ecx, esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x3f800000
mov dword [esp + 0x28], 0
call dword [edx + 0x48]
mov ecx, eax
call fcn.006e8230
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov ecx, dword [0x7de6cc]
mov edx, dword [0x7de6d0]
mov eax, dword [0x7de6d4]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cl, byte [esi + 0x7c]
xor edi, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov ebp, ecx
test ebp, ebp
jle 0x5231ba
mov ecx, dword [esi + 0x18]
cmp byte [ecx], 0
je 0x5230c8
mov al, byte [ecx + 0x3f]
test al, al
jne 0x522ef2
xor edx, edx
mov dx, word [esi + 8]
shr edx, 0xd
test dl, 1
je 0x5230c8
mov dl, byte [ecx + 0x3e]
cmp dl, 5
je 0x5230c8
cmp al, 1
jne 0x522f39
xor eax, eax
mov ax, word [esi + 8]
shr eax, 0xe
test al, 1
je 0x522f39
fld dword [esp + 0x58]
fabs
fcomp qword [0x746858]
fnstsw ax
test ah, 0x41
jne 0x522f39
fld dword [esp + 0x5c]
fabs
fcomp qword [0x746858]
fnstsw ax
test ah, 0x41
je 0x5230c8
movsx eax, word [ecx + 0x38]
mov dword [esp + 0x10], eax
movsx eax, word [ecx + 0x3a]
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
movsx eax, word [ecx + 0x3c]
fmul dword [0x746564]
fld st(0)
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul dword [0x746564]
fst dword [esp + 0x20]
fild dword [esp + 0x10]
fmul dword [0x746564]
fst dword [esp + 0x24]
fld dword [esp + 0x1c]
fmul st(1)
fld dword [esp + 0x18]
fmul st(3)
faddp st(1)
fxch st(3)
fmul dword [esp + 0x14]
faddp st(3)
fxch st(2)
fstp dword [esp + 0x10]
fxch st(1)
fstp st(0)
fstp st(0)
fld dword [ecx + 0x28]
fcomp dword [0x746468]
fnstsw ax
test ah, 1
jne 0x522fb4
cmp dl, 2
jne 0x5230b5
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x48], eax
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
fld dword [esp + 0x44]
fmul dword [esp + 0x44]
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fcom dword [0x746744]
fnstsw ax
test ah, 0x41
jne 0x523017
fld dword [0x746470]
fdiv st(1)
fstp dword [esp + 0x20]
fstp st(0)
fmul dword [esp + 0x20]
fld dword [esp + 0x20]
fmul dword [esp + 0x44]
fstp dword [esp + 0x38]
fld dword [esp + 0x20]
fmul dword [esp + 0x48]
fstp dword [esp + 0x3c]
jmp 0x523031
fstp st(0)
mov dword [esp + 0x38], 0
fstp st(0)
mov dword [esp + 0x3c], 0
fld dword [0x746468]
fld dword [esp + 0x2c]
fld dword [esp + 0x30]
fld st(1)
fmulp st(2)
fld dword [esp + 0x28]
fmul dword [esp + 0x28]
faddp st(2)
fld st(0)
fmul st(1)
faddp st(2)
fxch st(1)
fsqrt
fxch st(1)
fstp st(0)
fcomp dword [0x746468]
fnstsw ax
test ah, 0x40
jne 0x52309a
fld dword [esp + 0x30]
fmul dword [esp + 0x3c]
fld dword [esp + 0x2c]
fmul dword [esp + 0x38]
faddp st(1)
fld st(1)
fmul dword [esp + 0x28]
faddp st(1)
fcomp qword [0x74ad08]
fnstsw ax
test ah, 1
je 0x52309a
fld dword [esp + 0x10]
fcomp dword [0x746918]
fnstsw ax
test ah, 1
jne 0x5230e1
cmp dl, 2
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
je 0x5230c8
jmp 0x5230b7
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [0x746918]
fnstsw ax
test ah, 1
jne 0x5230f0
inc edi
add ecx, 0x40
cmp edi, ebp
jl 0x522ed0
pop edi
pop ebp
mov al, bl
pop ebx
pop esi
add esp, 0x84
ret
mov edx, dword [esi]
fstp st(0)
push 0
mov ecx, esi
mov bl, 1
call dword [edx + 0x54]
jmp 0x52315a
movsx eax, word [ecx + 0x38]
movsx edx, word [ecx + 0x3a]
mov dword [esp + 0x24], eax
movsx eax, word [ecx + 0x3c]
fild dword [esp + 0x24]
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x34]
fmul dword [0x746564]
push ecx
lea ecx, [esp + 0x44]
mov bl, 1
fstp dword [esp + 0x38]
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
fmul dword [0x746564]
fstp dword [esp + 0x3c]
fild dword [esp + 0x28]
fmul dword [0x746564]
fstp dword [esp + 0x40]
call fcn.0040a7e0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
cmp byte [esi + 0x228], 2
je 0x5231ba
mov al, byte [esi + 0x1d4]
test al, al
jne 0x5231ba
fld dword [esp + 0x4c]
mov byte [esi + 0x1d4], 1
fmul dword [0x7475dc]
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x50]
fmul dword [0x7475dc]
mov word [esi + 0x20c], ax
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x54]
fmul dword [0x7475dc]
mov word [esi + 0x20e], ax
call sub.MSVCRT.dll__ftol
mov word [esi + 0x210], ax
inc word [esi + 0x24]
pop edi
pop ebp
mov al, bl
pop ebx
pop esi
add esp, 0x84
ret
xor al, al
pop esi
add esp, 0x84
ret