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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
fld dword [ecx + 0x58]
mov ebp, dword [esp + 0x68]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fldz
fcompi st(1)
fstp st(0)
jae 0x516f09
cmp byte [ecx + 0x3b], 0xd
mov ebx, ecx
je 0x516f09
movzx edi, byte [ecx + 9]
mov eax, edi
cmp al, 8
je 0x516f09
cmp word [ecx + 0x12], 0
js 0x516f09
movzx esi, byte [ecx + 0x22]
mov eax, esi
cmp al, 8
je 0x516f09
movzx eax, word [ebx + 0x1c]
mov ecx, dword [0x59ad30]
mov edx, dword [esp + 0x64]
sar ax, 5
cwde
imul edx, ecx
add edx, dword [esp + 0x60]
imul eax, ecx
movzx ecx, word [ebx + 0x1a]
imul edx, edx, 0xe
add edx, dword [0x5b39d0]
sar cx, 5
movsx ecx, cx
add eax, ecx
mov ecx, dword [0x5b39d0]
imul eax, eax, 0xe
movzx eax, byte [ecx + eax + 0xc]
movzx ecx, word [edx]
and cx, 0xf00
cmp cx, 0x400
je 0x516f18
cmp byte [edx + 0xc], al
je 0x517050
cmp cx, 0x300
je 0x5171f0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
movsx ecx, word [edx + 4]
mov word [esp + 0x20], cx
mov dword [esp + 0x28], ecx
test ecx, ecx
jle 0x517301
cmp dword [0x5b504c], ecx
jl 0x517301
sub ecx, 1
imul ecx, dword [0x5b5050]
add ecx, dword [0x5b5059]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ecx]
mov dword [esp + 0x24], ecx
movzx ecx, byte [ecx + 4]
cmp cl, 9
je 0x517170
cmp byte [edx + 0xc], al
jne 0x5171b0
cmp byte [ebx + 0x42], 5
je 0x517250
movzx eax, word [esp + 0x20]
mov byte [ebx + 0x42], 5
mov word [ebx + 0x43], ax
movzx eax, word [esp + 0x60]
mov word [ebx + 0x45], ax
movzx eax, word [esp + 0x64]
mov word [ebx + 0x47], ax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov ecx, 0x5b62e0
movsx eax, byte [eax + 4]
mov dword [esp], eax
call fcn.00438280
mov ecx, ebx
sub esp, 4
mov esi, eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00516920
sub esp, 4
test eax, eax
je 0x5172e5
mov eax, dword [ebx]
movsx edi, word [esi + 0x48]
mov ecx, ebx
movsx esi, word [esi + 0x4a]
mov dword [esp], 0
call dword [eax + 0x78]
movsx eax, bp
mov ecx, ebx
sub esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.00516ad0
mov byte [ebx + 0x3b], 5
sub esp, 0x20
movzx eax, word [esp + 0x20]
mov word [ebx + 0x3c], ax
movzx eax, word [esp + 0x60]
mov word [ebx + 0x3e], ax
movzx eax, word [esp + 0x64]
mov word [ebx + 0x40], ax
jmp 0x516f09
cmp cx, 0x300
jne 0x517238
mov eax, esi
movsx esi, al
imul esi, esi, 0x84
add esi, dword [0x5b6a8c]
cmp byte [esi - 0x6d], 0x48
jne 0x516f09
movsx eax, word [edx + 4]
cmp byte [ebx + 0x42], 6
mov esi, eax
je 0x517290
movzx edi, word [esp + 0x60]
mov byte [ebx + 0x42], 6
mov word [ebx + 0x43], si
mov word [ebx + 0x45], di
movzx edi, word [esp + 0x64]
mov word [ebx + 0x47], di
test eax, eax
jle 0x51730a
cmp eax, dword [0x5b522c]
jg 0x51730a
sub eax, 1
imul eax, dword [0x5b5230]
mov edx, dword [0x5b5239]
mov eax, dword [edx + eax]
movsx dx, byte [ebx + 0x25]
cmp word [eax + 4], dx
jne 0x5171f0
movzx edi, word [eax + 0x17]
movzx edx, word [eax + 0x19]
mov ecx, ebx
add edi, 1
add edx, 1
sub di, word [eax + 0x13]
sub dx, word [eax + 0x15]
mov eax, dword [ebx]
movsx edx, dx
mov dword [esp], 0
movsx edi, di
mov dword [esp + 0x20], edx
call dword [eax + 0x78]
movsx eax, bp
mov ecx, ebx
sub esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x20]
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], edx
mov dword [esp + 8], edi
mov dword [esp], eax
call fcn.00516ad0
mov word [ebx + 0x3c], si
sub esp, 0x20
mov byte [ebx + 0x3b], 6
movzx eax, word [esp + 0x60]
mov word [ebx + 0x3e], ax
movzx eax, word [esp + 0x64]
mov word [ebx + 0x40], ax
jmp 0x516f09
mov edx, esi
movsx esi, dl
imul esi, esi, 0x84
add esi, dword [0x5b6a8c]
movzx edx, byte [esi - 0x6d]
cmp dl, 0x48
je 0x5172d0
cmp dl, 0x53
jne 0x516f69
mov esi, dword [esp + 0x24]
cmp byte [esi + 0x11a], al
je 0x516f69
lea esi, [esi]
nop
movsx ecx, cl
mov eax, dword [ebx + 0x1e]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ecx
movsx edx, word [eax + 0x10]
mov ecx, ebx
mov dword [esp + 0xc], edx
movsx eax, word [eax + 0xe]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.0052c720
sub esp, 0x18
jmp 0x516f09
mov eax, dword [ebx + 0x1e]
mov dword [esp + 0x14], 0
mov ecx, ebx
mov dword [esp + 0x10], 0
movsx edx, word [eax + 0x10]
mov dword [esp + 0xc], edx
movsx eax, word [eax + 0xe]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.0052c9d0
sub esp, 0x18
jmp 0x516f09
mov dword [esp], 2
mov ecx, ebx
call fcn.0052c430
sub esp, 4
jmp 0x516f09
movzx eax, word [esp + 0x20]
cmp word [ebx + 0x43], ax
jne 0x516f73
movsx eax, word [ebx + 0x45]
cmp eax, dword [esp + 0x60]
jne 0x516f73
movsx eax, word [ebx + 0x47]
cmp eax, dword [esp + 0x64]
jne 0x516f73
mov eax, edi
sub al, 1
jne 0x516f09
jmp 0x516f9c
cmp word [ebx + 0x43], ax
jne 0x517086
movsx edx, word [ebx + 0x45]
cmp edx, dword [esp + 0x60]
jne 0x517086
movsx edx, word [ebx + 0x47]
cmp edx, dword [esp + 0x64]
jne 0x517086
mov edx, edi
sub dl, 1
jne 0x516f09
jmp 0x5170a0
mov esi, dword [esp + 0x24]
cmp byte [esi + 0x119], al
jne 0x5171b0
jmp 0x516f69
mov edi, dword [esp + 0x24]
mov eax, dword [ebx + 0x1e]
mov dword [esp + 0x14], 0
movsx edx, byte [edi + 4]
mov dword [esp + 0x10], edx
jmp 0x5171c2
movzx eax, byte [4]
ud2
movzx eax, word [4]
ud2