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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
fld dword [ecx + 0x58]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fldz
fcompi st(1)
fstp st(0)
jae 0x51783a
cmp byte [ecx + 0x3b], 0xd
mov ebx, ecx
je 0x51783a
cmp byte [ecx + 9], 8
je 0x51783a
movsx eax, byte [ecx + 0x22]
imul eax, eax, 0x84
add eax, dword [0x5b6a8c]
cmp byte [eax - 0x6d], 0x48
je 0x517848
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
movsx eax, word [ecx + 6]
mov dword [esp + 4], edi
mov ecx, 0x5b39c8
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.0054c820
sub esp, 0xc
test eax, eax
je 0x517990
movzx eax, word [ebx + 0x1c]
movzx ecx, word [ebx + 0x1a]
mov edx, dword [0x5b39d0]
sar ax, 5
sar cx, 5
cwde
imul eax, dword [0x59ad30]
movsx ecx, cx
add eax, ecx
mov ecx, dword [0x59ad30]
imul eax, eax, 0xe
imul ecx, edi
add ecx, esi
imul ecx, ecx, 0xe
movzx ecx, byte [edx + ecx + 0xc]
cmp byte [edx + eax + 0xc], cl
jne 0x5179b2
cmp byte [ebx + 0x42], 0xb
je 0x517a60
xor edx, edx
mov byte [ebx + 0x42], 0xb
mov word [ebx + 0x43], dx
mov word [esp + 0x2c], si
mov word [ebx + 0x45], si
mov word [esp + 0x2e], di
mov word [ebx + 0x47], di
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp], 0
call dword [eax + 0x78]
mov ecx, ebx
sub esp, 4
mov dword [esp + 0x18], 4
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov eax, dword [ebx + 0x1e]
movsx eax, word [eax + 0xe]
mov dword [esp + 8], eax
movsx eax, word [ebx + 0x54]
mov dword [esp + 4], eax
movsx eax, word [ebx + 0x52]
mov dword [esp], eax
call fcn.00517370
sub esp, 0x1c
test eax, eax
je 0x517a98
mov eax, dword [ebx + 0x1a]
mov ecx, ebx
add edi, 2
add esi, 2
mov dword [ebx + 0x12], eax
mov eax, dword [ebx]
mov dword [esp], 0
call dword [eax + 0x2c]
mov ecx, ebx
sub esp, 4
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
movsx eax, word [ebx + 0x54]
mov dword [esp + 4], eax
movsx eax, word [ebx + 0x52]
mov dword [esp], eax
call fcn.004de540
sub esp, 0x10
xor eax, eax
mov byte [ebx + 0x3b], 0xb
mov word [ebx + 0x3c], ax
movzx eax, word [esp + 0x2c]
mov word [ebx + 0x3e], ax
movzx eax, word [esp + 0x2e]
mov word [ebx + 0x40], ax
jmp 0x51783a
mov eax, dword [0x59ad30]
imul eax, edi
add eax, esi
imul eax, eax, 0xe
add eax, dword [0x5b39d0]
movzx edx, word [eax]
and dx, 0xf00
cmp dx, 0x300
je 0x517a00
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 4], edi
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], 0
mov dword [esp], esi
call dword [eax + 0x7c]
sub esp, 0x20
jmp 0x51783a
movsx eax, word [eax + 4]
test eax, eax
jle 0x517add
cmp dword [0x5b522c], eax
jl 0x517add
sub eax, 1
imul eax, dword [0x5b5230]
mov edx, dword [0x5b5239]
mov edx, dword [edx + eax]
movsx ax, byte [ebx + 0x25]
cmp word [edx + 4], ax
jne 0x5179b2
mov dword [esp + 0x64], edi
mov ecx, ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], 1
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00516e60
movsx eax, word [ebx + 0x45]
cmp eax, esi
jne 0x5178b9
movsx eax, word [ebx + 0x47]
cmp eax, edi
jne 0x5178b9
cmp byte [ebx + 9], 1
jne 0x51783a
mov word [esp + 0x2c], si
mov word [esp + 0x2e], di
jmp 0x5178d5
movsx edx, bp
mov dword [esp + 0x18], 0
mov ecx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 4
mov dword [esp + 8], 4
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00516ad0
sub esp, 0x20
jmp 0x517968
movzx eax, word [4]
ud2