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

Disassembly:
push 0xffffffffffffffff
push 0x528b9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov eax, dword [esp + 0x144]
push 0x80
push eax
lea ecx, [esp + 0xbc]
push ecx
mov dword [esp + 0x148], esi
call fcn.00517030
lea edx, [esp + 0xc0]
push 0x2e
push edx
call fcn.00517000
inc eax
push 0x5303e4
push eax
call fcn.00516fa5
lea eax, [esp + 0xd0]
push eax
call fcn.0040c8b0
add esp, 0x20
cmp eax, esi
mov dword [esp + 0x40], eax
je 0x40b031
mov dword [ebx], esi
movzx ecx, word [eax]
lea ebp, [eax + 4]
mov eax, ecx
mov dword [ebx + 4], esi
mov dword [ebx], ecx
movzx edx, word [ebp]
lea eax, [eax + eax*2]
shl eax, 2
push eax
mov dword [ebx + 4], edx
add ebp, 4
call fcn.00516d2a
mov ecx, dword [ebx + 4]
imul ecx, ecx, 0x34
push ecx
mov dword [ebx + 0xc], eax
call fcn.00516d2a
mov edi, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx]
lea ecx, [eax + eax*2]
shl ecx, 2
mov edx, ecx
shr ecx, 2
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
imul ecx, ecx, 0x34
mov edi, dword [ebx + 0x10]
mov edx, ecx
lea eax, [eax + eax*2]
shr ecx, 2
lea esi, [ebp + eax*4]
mov eax, dword [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00516bb0
add esp, 0xc
xor esi, esi
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, esi
jbe 0x40b053
xor ecx, ecx
lea esp, [esp]
mov edx, dword [ebx + 0x10]
mov word [ecx + edx + 0x30], si
mov edx, dword [ebx + 4]
inc eax
add ecx, 0x34
cmp eax, edx
jb 0x40b040
cmp dword [ebx + 4], esi
mov dword [esp + 0x40], esi
jbe 0x40b3c0
mov eax, dword [ebx + 0x10]
movzx edx, word [eax + esi]
mov ecx, dword [ebx + 0xc]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*4]
mov edi, dword [edx]
mov ebp, dword [edx + 4]
mov edx, dword [edx + 8]
add eax, esi
mov dword [esp + 0x58], edx
movzx edx, word [eax + 2]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*4]
mov dword [esp + 0x54], ebp
mov ebp, dword [edx]
mov dword [esp + 0x1c], ebp
mov ebp, dword [edx + 4]
mov edx, dword [edx + 8]
fld dword [esp + 0x1c]
mov dword [esp + 0x24], edx
movzx edx, word [eax + 4]
lea edx, [edx + edx*2]
lea ecx, [ecx + edx*4]
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 4]
fsub dword [esp + 0x28]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], edx
fld dword [esp + 0x20]
mov dword [esp + 0x30], ecx
fsub dword [esp + 0x2c]
mov dword [esp + 0x50], edi
fstp dword [esp + 0x60]
fld dword [esp + 0x24]
fsub dword [esp + 0x30]
fstp dword [esp + 0x64]
fld dword [esp + 0x50]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x44]
fld dword [esp + 0x54]
fsub dword [esp + 0x20]
fstp dword [esp + 0x48]
fld dword [esp + 0x58]
fsub dword [esp + 0x24]
fstp dword [esp + 0x4c]
fld dword [esp + 0x48]
fmul dword [esp + 0x64]
fld dword [esp + 0x4c]
fmul dword [esp + 0x60]
fsubp st(1)
fld dword [esp + 0x4c]
fmul st(2)
fld dword [esp + 0x44]
fmul dword [esp + 0x64]
fsubp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x60]
fld dword [esp + 0x48]
fmul st(4)
fsubp st(1)
add eax, 0xc
fstp dword [esp + 0xa4]
mov edx, dword [esp + 0xa4]
fxch st(1)
fstp dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
mov dword [eax], ecx
fstp dword [esp + 0x78]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
fstp st(0)
fld dword [0x5303b8]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0x10]
fld dword [esi + edx + 0xc]
lea ecx, [esi + edx + 0xc]
fucompp
fnstsw ax
test ah, 0x44
jp 0x40b1ab
fld dword [0x5303b8]
fld dword [ecx + 4]
fucompp
fnstsw ax
test ah, 0x44
jp 0x40b1ab
fld dword [0x5303b8]
fld dword [ecx + 8]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x40b1b7
push ecx
push ecx
call fcn.004d5d20
fstp st(0)
add esp, 8
fld dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], edi
fcomp dword [esp + 0x34]
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], ecx
fnstsw ax
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
test ah, 0x41
jne 0x40b1f0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
jmp 0x40b207
fld dword [esp + 0x1c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x40b207
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
fld dword [esp + 0x28]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x41
jne 0x40b220
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
jmp 0x40b237
fld dword [esp + 0x28]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x40b237
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
fld dword [esp + 0x20]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x40b250
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
jmp 0x40b267
fld dword [esp + 0x20]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x40b267
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
fld dword [esp + 0x2c]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x40b280
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
jmp 0x40b297
fld dword [esp + 0x2c]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x40b297
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
fld dword [esp + 0x3c]
fld dword [esp + 0x24]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40b2b0
fstp st(0)
fld dword [esp + 0x24]
jmp 0x40b2c7
fld dword [esp + 0x24]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40b2c7
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], edx
fld dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40b2dc
fstp st(0)
fld dword [esp + 0x30]
jmp 0x40b2f3
fld dword [esp + 0x30]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40b2f3
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
fld dword [esp + 0x10]
mov edx, dword [ebx + 0x10]
fadd dword [esp + 0x34]
lea eax, [esi + edx + 0x18]
fld dword [esp + 0x14]
add esi, 0x34
fadd dword [esp + 0x38]
fstp dword [esp + 0x84]
fld dword [esp + 0x18]
fadd st(2)
fstp dword [esp + 0x88]
fmul dword [0x5303bc]
fld dword [esp + 0x84]
fmul dword [0x5303bc]
fld dword [esp + 0x88]
fmul dword [0x5303bc]
fstp dword [esp + 0xb0]
mov ecx, dword [esp + 0xb0]
fxch st(1)
fstp dword [esp + 0x68]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x68]
fstp dword [esp + 0x6c]
mov edx, dword [esp + 0x6c]
fld dword [esp + 0x34]
mov dword [eax], ecx
fsub dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0x10]
fmul dword [0x5303bc]
fstp dword [esi + edx - 0x10]
mov eax, dword [ebx + 0x10]
fld dword [esp + 0x38]
fsub dword [esp + 0x14]
fmul dword [0x5303bc]
fstp dword [esi + eax - 0xc]
mov ecx, dword [ebx + 0x10]
mov eax, dword [esp + 0x40]
fsub dword [esp + 0x18]
inc eax
mov dword [esp + 0x40], eax
fmul dword [0x5303bc]
fstp dword [esi + ecx - 8]
mov ecx, dword [ebx + 4]
cmp eax, ecx
jb 0x40b060
mov ecx, ebx
call fcn.00409e90
call fcn.0040ace0
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 4