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

Disassembly:
sub esp, 0x6c
push esi
push edi
mov edi, dword [esp + 0x78]
xor esi, esi
cmp edi, esi
je 0x52aace
push edi
call fcn.00525610
mov eax, dword [esp + 0x80]
add esp, 4
cmp eax, esi
je 0x52aabc
mov edx, dword [esp + 0x80]
cmp edx, esi
je 0x52aabc
mov eax, dword [esp + 0x84]
sub eax, 0x1100
je 0x52a523
dec eax
je 0x52a51c
dec eax
je 0x52a50d
mov ecx, 4
mov dword [esp + 8], 2
jmp 0x52a52c
mov ecx, 2
mov dword [esp + 8], 1
jmp 0x52a52c
mov ecx, 2
jmp 0x52a528
mov ecx, 1
mov dword [esp + 8], ecx
mov eax, edx
xor edx, edx
div ecx
push ebx
push ebp
mov ebp, dword [edi + 0x38]
mov dword [esp + 0x28], ebp
cmp eax, 0xbb80
mov dword [esp + 0x14], eax
jb 0x52a54e
mov dword [esp + 0x14], 0xbb80
mov eax, dword [esp + 0x14]
mov edi, 0x6c5660
mov dword [esp + 0x34], esi
lea edx, [eax*8]
xor eax, eax
mov ecx, edx
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
mov edi, 0x667a60
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x80]
cmp dword [eax + 0x3c], esi
jbe 0x52a965
mov ebx, dword [esp + 0x20]
mov eax, dword [ebp + 0xe08]
xor edi, edi
cmp eax, 0x1012
jne 0x52a940
cmp edi, dword [esp + 0x14]
jae 0x52a940
lea ecx, [esp + 0x18]
lea edx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
push 2
push ebp
call fcn.00529d50
fld dword [esp + 0x58]
fcomp dword [0x5a83e4]
add esp, 0x14
fnstsw ax
test ah, 0x44
jp 0x52a5fa
fld dword [esp + 0x48]
fcomp dword [0x5a83e4]
fnstsw ax
test ah, 0x44
jnp 0x52a940
mov ecx, dword [ebp + 0xe0]
cmp ecx, esi
mov dword [esp + 0x3c], ecx
je 0x52a87a
mov edx, dword [ecx + 4]
mov dword [esp + 0x30], edx
mov edx, dword [ecx]
cmp edx, 0x1100
je 0x52a62a
cmp edx, 0x1102
mov ebx, 0x10
jne 0x52a62f
mov ebx, 8
mov eax, dword [ecx + 8]
cmp edx, 0x1100
je 0x52a64a
cmp edx, 0x1101
mov dword [esp + 0x1c], 2
jne 0x52a652
mov dword [esp + 0x1c], 1
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], esi
mov ecx, dword [edx + 0x48]
xor edx, edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x1c]
imul ecx, ebx
fild qword [esp + 0x54]
fmul dword [esp + 0x18]
shr ecx, 3
mov dword [esp + 0x60], esi
mov ebx, dword [ebp + 0xe10]
fidiv dword [esp + 0x5c]
div ecx
mov esi, dword [ebp + 0xe0c]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x64], eax
xor eax, eax
fstp dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
fild qword [esp + 0x64]
fild qword [esp + 0x6c]
mov dword [esp + 0x78], eax
fmul dword [0x5ad384]
fild qword [esp + 0x74]
faddp st(1)
fsubp st(1)
fdiv dword [esp + 0x18]
call fcn.00509960
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edi
cmp ecx, eax
jb 0x52a6ec
mov ecx, eax
imul esi, dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [0x5ad380]
mov edx, dword [esp + 0x30]
push ecx
fstp dword [esp]
lea esi, [edx + esi*2]
call fcn.00529be0
add esp, 4
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x52a855
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
mov eax, ebx
mov edx, ebx
shr eax, 0xe
and edx, 0x3fff
dec ecx
je 0x52a7c3
dec ecx
jne 0x52a83b
movsx ecx, word [esi + eax*4 + 4]
movsx ebp, word [esi + eax*4]
imul ecx, edx
mov ebx, 0x4000
sub ebx, edx
imul ebp, ebx
add ecx, ebp
shr ecx, 0xe
movsx ecx, cx
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fld dword [esp + 0x44]
fmul st(1)
fadd dword [edi*8 + 0x6c5660]
fstp dword [edi*8 + 0x6c5660]
fmul dword [esp + 0x4c]
fadd dword [edi*8 + 0x667a60]
fstp dword [edi*8 + 0x667a60]
movsx ecx, word [esi + eax*4 + 6]
imul ecx, edx
movsx edx, word [esi + eax*4 + 2]
imul edx, ebx
add ecx, edx
mov ebx, dword [esp + 0x20]
shr ecx, 0xe
movsx eax, cx
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fld dword [esp + 0x48]
fmul st(1)
fadd dword [edi*8 + 0x6c5664]
fstp dword [edi*8 + 0x6c5664]
jmp 0x52a825
movsx ecx, word [esi + eax*2]
movsx eax, word [esi + eax*2 + 2]
mov ebp, 0x4000
imul eax, edx
sub ebp, edx
imul ecx, ebp
add ecx, eax
shr ecx, 0xe
movsx ecx, cx
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
fld dword [esp + 0x44]
fmul st(1)
fadd dword [edi*8 + 0x6c5660]
fstp dword [edi*8 + 0x6c5660]
fld dword [esp + 0x48]
fmul st(1)
fadd dword [edi*8 + 0x6c5664]
fstp dword [edi*8 + 0x6c5664]
fld dword [esp + 0x4c]
fmul st(1)
fadd dword [edi*8 + 0x667a60]
fstp dword [edi*8 + 0x667a60]
fmul dword [esp + 0x50]
mov ebp, dword [esp + 0x28]
fadd dword [edi*8 + 0x667a64]
fstp dword [edi*8 + 0x667a64]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add ebx, edx
inc edi
dec eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
jne 0x52a71e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov edx, ebx
and ebx, 0x3fff
shr edx, 0xe
add eax, edx
mov dword [ebp + 0xe10], ebx
mov dword [ebp + 0xe0c], eax
xor esi, esi
jmp 0x52a87e
mov eax, dword [esp + 0x24]
add ebx, dword [esp + 0x30]
mov edx, ebx
and ebx, 0x3fff
shr edx, 0xe
add eax, edx
cmp ecx, esi
mov dword [esp + 0x24], eax
je 0x52a8a1
cmp eax, dword [esp + 0x40]
jb 0x52a930
mov eax, dword [ebp + 0xe14]
cmp eax, esi
je 0x52a90e
mov ecx, dword [ebp + 0xe18]
mov edx, dword [ebp + 0xa8]
dec ecx
cmp dword [ebp + 0xe2c], ecx
jae 0x52a90e
xor ecx, ecx
cmp eax, esi
je 0x52a8d4
cmp edx, esi
jne 0x52a8d1
mov dword [eax + 4], 2
mov eax, dword [eax + 0xc]
inc ecx
cmp ecx, dword [ebp + 0xe2c]
jbe 0x52a8c2
cmp edx, esi
jne 0x52a8e7
inc dword [ebp + 0xe1c]
cmp eax, esi
je 0x52a8f3
mov edx, dword [eax]
mov dword [ebp + 0xe0], edx
mov eax, dword [ebp + 0xe2c]
mov dword [ebp + 0xe0c], esi
inc eax
mov dword [ebp + 0xe10], esi
mov dword [ebp + 0xe2c], eax
jmp 0x52a930
push ebp
call fcn.005297f0
mov eax, dword [ebp + 0xa8]
add esp, 4
cmp eax, esi
je 0x52a930
push ebp
call fcn.005298a0
push ebp
call fcn.00529730
add esp, 8
cmp dword [ebp + 0xe08], 0x1012
je 0x52a5b0
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x34]
mov ebp, dword [ebp + 0xe64]
inc eax
mov edx, dword [ecx + 0x3c]
mov dword [esp + 0x28], ebp
cmp eax, edx
mov dword [esp + 0x34], eax
jb 0x52a59d
mov eax, dword [esp + 0x8c]
xor edx, edx
xor ecx, ecx
pop ebp
sub eax, 0x1100
pop ebx
je 0x52aa72
dec eax
je 0x52aa23
dec eax
mov eax, dword [esp + 0x80]
je 0x52a9d8
div dword [esp + 8]
mov edx, eax
cmp edx, esi
jbe 0x52aabc
mov eax, ecx
mov esi, ecx
shr eax, 1
and esi, 1
push ecx
lea eax, [esi + eax*2]
shl eax, 2
fld dword [eax + 0x667a60]
fadd dword [eax + 0x6c5660]
fstp dword [esp]
call fcn.00529c00
mov esi, dword [esp + 0x80]
add esp, 4
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, edx
jb 0x52a99c
jmp 0x52aabc
div dword [esp + 8]
mov edx, eax
cmp edx, esi
jbe 0x52aabc
mov eax, ecx
mov esi, ecx
shr eax, 1
and esi, 1
push ecx
lea eax, [esi + eax*2]
shl eax, 2
fld dword [eax + 0x667a60]
fadd dword [eax + 0x6c5660]
fstp dword [esp]
call fcn.00529c00
mov esi, dword [esp + 0x80]
add al, 0x80
add esp, 4
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x52a9e6
jmp 0x52aabc
mov eax, dword [esp + 0x80]
div dword [esp + 8]
mov edx, eax
cmp edx, esi
jbe 0x52aabc
fld dword [ecx*8 + 0x667a64]
fadd dword [ecx*8 + 0x6c5664]
push ecx
fadd dword [ecx*8 + 0x667a60]
fadd dword [ecx*8 + 0x6c5660]
fstp dword [esp]
call fcn.00529c00
mov esi, dword [esp + 0x80]
add esp, 4
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, edx
jb 0x52aa38
jmp 0x52aabc
mov eax, dword [esp + 0x80]
div dword [esp + 8]
mov edx, eax
cmp edx, esi
jbe 0x52aabc
fld dword [ecx*8 + 0x667a64]
fadd dword [ecx*8 + 0x6c5664]
push ecx
fadd dword [ecx*8 + 0x667a60]
fadd dword [ecx*8 + 0x6c5660]
fstp dword [esp]
call fcn.00529c00
mov esi, dword [esp + 0x80]
add al, 0x80
add esp, 4
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x52aa83
call fcn.00525570
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00525620
add esp, 4
pop edi
pop esi
add esp, 0x6c
ret