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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x517b79
sub esp, 0x64
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
nop
mov edx, dword [ecx + 8]
test edx, edx
jne 0x517b57
xor ecx, ecx
test ecx, ecx
je 0x517b4b
nop
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x517b30
xor edx, edx
cmp edx, 1
jge 0x517b0b
mov edx, 1
test dl, dl
jne 0x517aff
nop
mov edx, dword [esp + 0x7c]
mov ebx, dword [edx + 8]
test ebx, ebx
jne 0x517ae4
xor ebx, ebx
cmp ebx, 1
jge 0x517abb
mov ebx, 1
test bl, bl
jne 0x517aaf
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov ecx, dword [eax + 4]
lea ebx, [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004dba50
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0xc]
nop
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
nop
lea ebp, [ebx - 1]
test ebp, ebp
jl 0x517aa8
mov ecx, dword [ecx + ebx*4 - 4]
nop
nop
cmp ecx, 0x10000
jb 0x517aa1
shr ecx, 0x10
mov ebx, 0x10
cmp ecx, 0x100
jb 0x5178af
shr ecx, 8
add ebx, 8
cmp ecx, 0x100
jae 0x517b72
shl ebp, 5
lea esi, [0x869c00]
movzx ecx, byte [esi + ecx]
add ecx, ebx
add ecx, ebp
test ecx, 7
je 0x5178e0
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov dword [esp + 0x24], edx
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
nop
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
call fcn.004e3b30
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov byte [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea eax, [esp + 0x34]
mov dword [esp], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
call fcn.004d9c20
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 4]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004d9f80
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004d9c20
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 4]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004d9f80
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
call fcn.004da360
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov ebp, dword [esp + 0x2c]
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call fcn.004da360
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
call fcn.004d9c20
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [esp + 0x28]
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004d9f80
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004d9f80
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
call fcn.004da1b0
mov eax, dword [esp + 8]
test eax, eax
sete al
mov byte [esp + 0x80], al
add esp, 0x64
ret
xor ebx, ebx
jmp 0x5178a1
xor ecx, ecx
jmp 0x5178cc
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov ecx, dword [eax + 4]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004da1b0
mov eax, dword [esp + 8]
test eax, eax
setge bl
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
jmp 0x51782d
movzx ebx, byte [edx]
test bl, bl
je 0x517af5
mov ebx, 0xffffffff
jmp 0x51781f
mov ebx, 1
jmp 0x51781f
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004da1b0
mov eax, dword [esp + 8]
test eax, eax
setge dl
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x78]
jmp 0x517805
movzx edx, byte [ecx]
test dl, dl
je 0x517b41
mov edx, 0xffffffff
jmp 0x5177f7
mov edx, 1
jmp 0x5177f7
mov byte [esp + 0x80], 0
add esp, 0x64
ret
movzx ecx, byte [ecx]
test cl, cl
je 0x517b68
mov ecx, 0xffffffff
jmp 0x5177dd
mov ecx, 1
jmp 0x5177dd
call fcn.00427150
ud2
call fcn.0044b940
jmp fcn.005177b0