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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
cmp byte [ecx + 0x9e], 0
je 0x520e46
cmp byte [ecx + 0x71], 0
jne 0x520e60
mov dword [esp], 2
call fcn.0052c430
sub esp, 4
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
fld dword [ecx + 0x58]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fldz
fcompi st(1)
fstp st(0)
jae 0x520e55
cmp byte [ecx + 0x3b], 0xd
je 0x520e55
cmp byte [ecx + 9], 8
je 0x520e55
mov esi, dword [esp + 0x64]
imul esi, dword [0x59ad30]
add esi, dword [esp + 0x60]
imul esi, esi, 0xe
add esi, dword [0x5b39d0]
movzx eax, word [esi]
and ax, 0xf00
cmp ax, 0x300
jne 0x5210e8
movsx eax, word [esi + 4]
test eax, eax
jle 0x52136e
cmp dword [0x5b522c], eax
jl 0x52136e
sub eax, 1
imul eax, dword [0x5b5230]
mov edx, dword [0x5b5239]
mov dword [esp + 0x20], ecx
mov ebx, dword [edx + eax]
movsx eax, word [ebx + 4]
mov dword [esp], eax
call fcn.0051dd70
sub esp, 4
test eax, eax
mov ecx, dword [esp + 0x20]
je 0x520e46
cmp byte [ecx + 8], 0x41
je 0x521120
movzx eax, word [ecx + 0x1c]
movzx edx, word [ecx + 0x1a]
sar ax, 5
sar dx, 5
cwde
imul eax, dword [0x59ad30]
movsx edx, dx
add eax, edx
movzx edx, byte [esi + 0xc]
imul eax, eax, 0xe
add eax, dword [0x5b39d0]
cmp byte [eax + 0xc], dl
je 0x521120
call fcn.0051ea10
mov dword [esp + 0xc], 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.00522690
sub esp, 0x14
test eax, eax
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x20]
je 0x5212e4
movzx edx, byte [ecx + 0x42]
cmp dl, 0x16
jbe 0x521138
mov byte [ecx + 0x42], 3
movzx eax, word [ebx]
movzx edi, word [esp + 0x60]
movzx esi, word [esp + 0x64]
mov word [ecx + 0x43], ax
mov word [ecx + 0x45], di
mov word [ecx + 0x47], si
mov eax, dword [ecx]
mov dword [esp + 0x20], ecx
mov dword [esp], 0
call dword [eax + 0x78]
sub esp, 4
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x64]
mov byte [ecx + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 4
mov dword [esp], eax
call fcn.0051d060
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], 0x4c
mov dword [esp + 0x24], eax
call fcn.0051e640
sub esp, 8
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
movzx edx, byte [ecx + 0xc]
lea ebp, [edx + edx*8]
lea ebp, [edx + ebp*2]
add ebp, dword [ecx + 0x6d]
movzx edx, byte [ebp + 2]
cmp edx, eax
jge 0x521170
mov eax, dword [esp + 0x68]
or eax, dword [esp + 0x6c]
je 0x521230
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
add edx, dword [esp + 0x6c]
add eax, dword [esp + 0x68]
js 0x521355
mov ebp, dword [0x59ad30]
sub ebp, 1
cmp dword [0x59ad30], eax
cmovle eax, ebp
test edx, edx
js 0x52134e
mov ebp, dword [0x59ad2c]
sub ebp, 1
cmp dword [0x59ad2c], edx
cmovle edx, ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.0052d7d0
sub esp, 0x20
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x70]
mov byte [ecx + 0x33], 0
test eax, eax
jne 0x521275
mov byte [ecx + 0x3b], 3
movzx eax, word [ebx]
mov word [ecx + 0x3e], di
mov word [ecx + 0x3c], ax
mov word [ecx + 0x40], si
jmp 0x520e55
movzx eax, byte [ecx + 0x42]
cmp al, 0x16
ja 0x520e55
mov edx, 0xffb6ffff
bt edx, eax
jb 0x520e55
mov eax, dword [ecx]
mov dword [esp], 2
call dword [eax + 0x78]
sub esp, 4
jmp 0x520e55
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
jmp 0x520f7b
mov eax, 0xffb6fff7
bt eax, edx
jb 0x520f88
movzx eax, word [ebx]
cmp word [ecx + 0x43], ax
je 0x5211f8
mov esi, 0xffb6ffff
bt esi, edx
jae 0x520f8f
jmp 0x520f88
cmp byte [ecx + 9], 1
jne 0x5210ca
mov eax, dword [ecx + 0x1a]
mov dword [esp + 0x20], ecx
mov dword [ecx + 0x12], eax
mov eax, dword [ecx]
mov dword [esp], 0
call dword [eax + 0x2c]
movsx eax, word [ebx + 0x25]
sub esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
movsx eax, word [ebx + 0x23]
mov dword [esp + 8], eax
movzx eax, word [ecx + 0x1c]
sar ax, 5
cwde
mov dword [esp + 4], eax
movzx eax, word [ecx + 0x1a]
sar ax, 5
cwde
mov dword [esp], eax
call fcn.0051e860
sub esp, 0x10
mov ecx, dword [esp + 0x20]
call fcn.004de440
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x52135c
cmp byte [ebp + 2], 1
jne 0x5210ca
call fcn.0052fa90
mov ecx, dword [esp + 0x20]
jmp 0x5210ca
movsx esi, word [ecx + 0x45]
cmp esi, dword [esp + 0x60]
jne 0x521153
movsx esi, word [ecx + 0x47]
cmp esi, dword [esp + 0x64]
jne 0x521153
cmp byte [ecx + 9], 1
jne 0x520e55
movzx edi, word [esp + 0x60]
movzx esi, word [esp + 0x64]
jmp 0x520fa5
mov edx, dword [esp + 0x28]
test edx, edx
je 0x521281
movsx eax, word [esp + 0x2c]
mov dword [esp + 0xc], 0xd
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x20], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.00522250
sub esp, 0x14
mov ecx, dword [esp + 0x20]
jmp 0x5210ba
mov dword [ecx + 0x49], 0
jmp 0x5210ca
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 4
mov dword [esp + 8], 4
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.00516ad0
sub esp, 0x20
test eax, eax
mov ecx, dword [esp + 0x20]
jne 0x5210ba
mov dword [ecx + 0x49], 0xffffffff
jmp 0x5210ca
movzx eax, byte [ecx + 0x42]
cmp al, 0x10
je 0x520e55
cmp al, 0x13
je 0x520e55
cmp byte [ecx + 0x3b], 0x16
je 0x520e55
mov edi, dword [esp + 0x64]
mov eax, dword [ecx]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 1
mov dword [esp + 4], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp], edi
call dword [eax + 0x7c]
sub esp, 0x20
jmp 0x520e55
xor edx, edx
jmp 0x521073
xor eax, eax
jmp 0x521059
mov dword [esp + 0x20], ecx
call fcn.0052faa0
mov ecx, dword [esp + 0x20]
jmp 0x5210ca
movzx eax, word [4]
ud2