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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x1c]
cmp eax, dword [ecx + 8]
jbe 0x516bfe
sub esp, 0x9c
mov byte [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
lea eax, [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004fb290
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fbae0
mov byte [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
lea eax, [esp + 0x7c]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004fb290
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fbae0
lea eax, [0x869b80]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
call fcn.004fb040
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x516be3
xor ecx, ecx
mov dword [esp + 0x34], eax
cmp ecx, 0xffffffff
je 0x516bc5
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
call fcn.004fadf0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004fb290
nop
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
je 0x516bbe
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ebp, dword [eax + 0xc]
mov esi, dword [eax + 4]
cmp ebx, ebp
jg 0x516b34
mov edi, ebx
cmp ebx, edi
jle 0x516b2d
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x28], ebx
cmp esi, edx
je 0x51659f
mov dword [esp], esi
mov dword [esp + 4], edx
shl edi, 2
mov dword [esp + 8], edi
call fcn.004529a0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0xc], ecx
mov ecx, dword [0xc6be00]
test ecx, ecx
jne 0x516b1c
mov eax, dword [esp + 0x58]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax]
mov byte [edx], cl
nop
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 1
call fcn.00506390
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [0xc6be00]
test eax, eax
jne 0x516b0d
mov dword [ebx + 4], edx
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
call fcn.004fadf0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
call fcn.004fb290
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
lea ecx, [0x869b80]
mov dword [esp], ecx
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004fb290
mov eax, dword [esp + 0xc]
mov dword [esp + 0x48], eax
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 8]
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx + 0xc]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 3
call fcn.00506390
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
movzx ecx, byte [eax]
mov byte [esp + 0x5c], cl
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
lea ebx, [esp + 0x5c]
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004fbae0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
lea ecx, [esp + 0x5c]
mov dword [esp + 8], ecx
call fcn.004fb040
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x516af2
xor ecx, ecx
cmp ecx, 0xffffffff
je 0x516ad0
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fbae0
lea eax, [0x869b80]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 8], eax
call fcn.004fadf0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004fb290
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.004fb040
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x516ab5
xor ecx, ecx
cmp ecx, 0xffffffff
je 0x516a93
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
call fcn.004fb040
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x516a78
xor ecx, ecx
cmp ecx, 0xffffffff
je 0x516a56
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fbae0
nop
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 2
call fcn.00506390
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x50]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [0xc6be00]
test eax, eax
jne 0x516a47
mov dword [ebx + 4], edx
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x48]
mov dword [esp + 8], eax
call fcn.004fb040
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x516a2c
xor ecx, ecx
cmp ecx, 0xffffffff
je 0x516a0a
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004fb290
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.004fb290
nop
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 3
call fcn.00506390
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov eax, dword [0xc6be00]
test eax, eax
jne 0x5169fb
mov dword [ebx + 4], edx
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004fbae0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.004fb040
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5169e6
xor ecx, ecx
cmp ecx, 0xffffffff
je 0x5169c7
mov ecx, dword [esp + 0xa0]
mov ecx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.004fbae0
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xb8], eax
add esp, 0x9c
ret
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fadf0
mov eax, dword [esp + 0x4c]
jmp 0x516986
movzx ecx, byte [eax]
test cl, cl
je 0x5169f4
mov ecx, 0xffffffff
jmp 0x516981
mov ecx, 1
jmp 0x516981
lea edi, [ebx + 4]
mov eax, edx
call fcn.00451ff0
jmp 0x516943
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fadf0
mov eax, dword [esp + 0x50]
jmp 0x5168ba
movzx ecx, byte [eax]
test cl, cl
je 0x516a3d
mov ecx, 0xffffffff
jmp 0x5168b1
mov ecx, 1
jmp 0x5168b1
lea edi, [ebx + 4]
mov eax, edx
call fcn.00451ff0
jmp 0x51688c
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fadf0
mov eax, dword [esp + 0x44]
jmp 0x51681a
movzx ecx, byte [eax]
test cl, cl
je 0x516a89
mov ecx, 0xffffffff
jmp 0x516811
mov ecx, 1
jmp 0x516811
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fadf0
mov eax, dword [esp + 0x44]
jmp 0x5167ec
movzx ecx, byte [eax]
test cl, cl
je 0x516ac6
mov ecx, 0xffffffff
jmp 0x5167e3
mov ecx, 1
jmp 0x5167e3
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fadf0
mov eax, dword [esp + 0x48]
jmp 0x516759
movzx ecx, byte [eax]
test cl, cl
je 0x516b03
mov ecx, 0xffffffff
jmp 0x516750
mov ecx, 1
jmp 0x516750
lea edi, [ebx + 4]
mov eax, edx
call fcn.00451ff0
jmp 0x516624
lea edi, [edx + 4]
mov eax, dword [esp + 0x58]
call fcn.00451ff0
jmp 0x5165c6
mov edi, ebx
jmp 0x51657c
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], ebx
cmp ebx, 1
jne 0x516b82
lea eax, [0x843300]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0043d110
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
mov ebp, 1
mov ebx, 1
jmp 0x516574
lea eax, [0x843300]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x2c], eax
mov dword [esp + 8], eax
call fcn.0043d110
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov ebx, edi
jmp 0x516574
mov eax, ecx
jmp 0x5165cf
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fadf0
jmp 0x5164f5
movzx ecx, byte [eax]
test cl, cl
je 0x516bf4
mov ecx, 0xffffffff
jmp 0x5164e8
mov ecx, 1
jmp 0x5164e8
call fcn.004507b0
jmp fcn.005163c0