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

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x98]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 1
push eax
mov dword [esp + 0x5c], ebx
call fcn.00557300
test al, al
je 0x5638bc
mov dword [esp + 0x1c], 2
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0xa8]
mov esi, 1
lea ecx, [ebp + 1]
shl esi, cl
movsx ecx, word [edi]
mov eax, ecx
mov dword [esp + 0x30], esi
cdq
idiv esi
movsx edi, word [edi + 2]
mov eax, edi
mov dword [esp + 0x34], esi
sub ecx, edx
cdq
idiv esi
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x3c]
sub edi, edx
mov dword [esp + 0x2c], edi
xor edi, edi
push edi
push edi
call fcn.0042b620
mov esi, dword [ebx + ebp*4 + 0x7c]
mov dword [esp + 0x3c], vtable.DynamicVectorClass_unsigned_short_int_.0
mov dword [esp + 0x50], 0xa
mov dword [esp + 0x4c], edi
mov eax, dword [esi + 8]
mov dword [esp + 0x6c], esi
test eax, eax
jle 0x56309d
mov dword [esp + 0x24], edi
mov ecx, dword [esi]
mov edx, dword [esp + 0x24]
add ecx, edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esp + 0x24]
mov eax, dword [esi + 8]
inc edi
add ecx, 0x18
cmp edi, eax
mov dword [esp + 0x24], ecx
jl 0x56307d
lea ecx, [ebp + ebp*2]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x14], edx
lea eax, [ebx + ecx*8]
mov dword [esp + 0x18], eax
add eax, 0x88
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
add eax, edx
cmp edx, eax
mov eax, dword [esp + 0x28]
jge 0x5631d6
lea ecx, [edi + eax]
mov esi, eax
cmp eax, ecx
jge 0x5631bf
mov dx, word [esp + 0x14]
lea eax, [esp + 0x60]
push eax
mov ecx, ebx
mov word [esp + 0x64], si
mov word [esp + 0x66], dx
call fcn.0054cdf0
mov edx, dword [ebx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x1c]
lea edi, [edx + ecx*2]
mov bp, word [edi + eax*2]
test bp, bp
je 0x563174
mov edx, dword [esp + 0x4c]
lea eax, [edx - 1]
test eax, eax
jl 0x56312c
mov ecx, dword [esp + 0x40]
lea ecx, [ecx + eax*2]
cmp word [ecx], bp
je 0x56312c
dec eax
sub ecx, 2
test eax, eax
jge 0x56311f
cmp eax, 0xffffffff
jne 0x563174
mov eax, dword [esp + 0x44]
cmp edx, eax
jl 0x563165
mov cl, byte [esp + 0x49]
test cl, cl
jne 0x563145
test eax, eax
jne 0x563174
mov ecx, dword [esp + 0x50]
test ecx, ecx
jle 0x563174
mov edx, dword [esp + 0x3c]
add eax, ecx
push 0
push eax
lea ecx, [esp + 0x44]
call dword [edx + 8]
test al, al
je 0x563174
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov eax, edx
inc edx
mov dword [esp + 0x4c], edx
mov word [ecx + eax*2], bp
mov edx, dword [esp + 0x1c]
mov ax, word [esp + 0x14]
lea ecx, [esp + 0x68]
mov word [esp + 0x68], si
push ecx
mov ecx, ebx
mov word [edi + edx*2], 0
mov word [esp + 0x6e], ax
call fcn.0054cdf0
mov edx, dword [ebx + 0x64]
inc esi
lea eax, [edx + eax*4]
mov ax, word [eax + 2]
mov word [edi + 6], ax
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
lea ecx, [edi + eax]
cmp esi, ecx
jl 0x5630dc
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
inc ecx
add esi, edx
cmp ecx, esi
mov dword [esp + 0x14], ecx
jl 0x5630cf
mov ecx, dword [esp + 0x4c]
lea esi, [ecx - 1]
test esi, esi
mov dword [esp + 0x14], esi
jl 0x5632a9
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov bp, word [edx + esi*2]
mov edx, dword [ecx + 0x8c]
and ebp, 0xffff
lea eax, [ebp + ebp*8]
lea edi, [edx + eax*4]
mov dword [esp + 0x20], edi
mov eax, dword [edi + 0x10]
dec eax
mov dword [esp + 0x10], eax
js 0x56328b
jmp 0x56321c
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
mov eax, dword [ecx + eax*8]
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x8c]
lea esi, [ecx + edx*4]
mov ecx, dword [ecx + edx*4 + 0x10]
lea edx, [ecx - 1]
mov eax, edx
test eax, eax
jl 0x56327c
mov edi, dword [esi + 4]
lea edi, [edi + eax*8]
cmp dword [edi], ebp
je 0x563253
dec eax
sub edi, 8
test eax, eax
jge 0x563245
jmp 0x563278
cmp eax, ecx
jge 0x563278
cmp eax, edx
mov dword [esi + 0x10], edx
jge 0x563278
mov edx, dword [esi + 4]
inc eax
mov ecx, dword [edx + eax*8]
mov dword [edx + eax*8 - 8], ecx
mov ecx, dword [edx + eax*8 + 4]
mov dword [edx + eax*8 - 4], ecx
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jl 0x56325e
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jns 0x563218
mov esi, dword [esp + 0x14]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
dec esi
mov dword [esp + 0x14], esi
jns 0x5631e9
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov ebp, edx
mov ecx, dword [ebx + ecx*4 + 0x70]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
add ecx, edx
cmp edx, ecx
jge 0x56353f
lea ecx, [edi + eax]
mov esi, eax
cmp eax, ecx
jge 0x563530
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*8]
shl eax, 2
mov dword [esp + 0x18], eax
lea edx, [esp + 0x5c]
push 1
push edx
mov ecx, ebx
mov word [esp + 0x64], si
mov word [esp + 0x66], bp
call fcn.00557300
test al, al
je 0x563518
lea eax, [esp + 0x58]
mov ecx, ebx
push eax
mov word [esp + 0x5c], si
mov word [esp + 0x5e], bp
call fcn.0054ce30
test eax, eax
jge 0x56331e
xor eax, eax
jmp 0x563328
mov ecx, dword [ebx + 0x68]
cmp eax, ecx
jl 0x563328
lea eax, [ecx - 1]
mov edx, dword [ebx + 0x6c]
lea ecx, [eax + eax*4]
mov word [esp + 0x64], si
mov word [esp + 0x66], bp
lea eax, [edx + ecx*2]
lea ecx, [esp + 0x64]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.0054ce30
test eax, eax
jge 0x563353
xor eax, eax
jmp 0x56335d
mov ecx, dword [ebx + 0x68]
cmp eax, ecx
jl 0x56335d
lea eax, [ecx - 1]
mov edx, dword [ebx + 0x64]
xor ecx, ecx
mov cl, byte [edx + eax*4]
mov eax, ecx
cmp eax, 7
mov dword [esp + 0x20], eax
je 0x563518
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp word [edx + eax*2], 0
jne 0x563518
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, ebx
mov word [esp + 0x4c], si
mov word [esp + 0x4e], bp
call fcn.00560f30
xor edi, edi
lea ecx, [esp + 0x70]
push edi
push edi
call fcn.005696f0
lea ecx, [esp + 0x70]
mov dword [esp + 0x70], vtable.DynamicVectorClass_struct_SubzoneConnectionStruct_.0
mov dword [esp + 0x84], 0xa
mov dword [esp + 0x80], edi
call dword [0x790acc]
mov word [esp + 0x88], di
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
cmp ecx, eax
jl 0x563428
mov cl, byte [edi + 0xd]
test cl, cl
jne 0x563411
test eax, eax
jne 0x56346e
mov ecx, dword [edi + 0x14]
test ecx, ecx
jle 0x56346e
mov edx, dword [edi]
add eax, ecx
push 0
push eax
mov ecx, edi
call dword [edx + 8]
test al, al
je 0x56346e
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x10]
lea edx, [ecx + 1]
lea ecx, [ecx + ecx*8]
mov dword [eax + 0x10], edx
mov edx, dword [eax + 4]
lea eax, [esp + 0x70]
lea edi, [edx + ecx*4]
push eax
mov ecx, edi
call fcn.00569650
mov cx, word [esp + 0x88]
mov word [edi + 0x18], cx
mov edx, dword [esp + 0x8c]
mov dword [edi + 0x1c], edx
mov eax, dword [esp + 0x90]
mov dword [edi + 0x20], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x70], vtable.VectorClass_struct_SubzoneConnectionStruct_.0
test eax, eax
je 0x563497
mov cl, byte [esp + 0x7d]
test cl, cl
je 0x563497
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x74], 0
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ecx, edi
cmp eax, 2
mov byte [esp + 0x7d], 0
mov dword [esp + 0x78], 0
jne 0x5634ba
xor eax, eax
jmp 0x5634c3
mov edx, dword [esp + 0x14]
inc eax
movsx eax, word [edx + eax*2]
mov word [ecx + 0x18], ax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x14], 0x10
movsx eax, bp
cdq
and edx, 3
add eax, edx
sar eax, 2
mov edi, eax
shl edi, 6
add edi, eax
movsx eax, si
cdq
and edx, 3
add eax, edx
sar eax, 2
lea edx, [eax + edi*2 + 0x83]
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x20], edx
mov ecx, dword [esp + 0x10]
inc ecx
add eax, 0x24
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
je 0x5637eb
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
inc esi
lea ecx, [edi + eax]
cmp esi, ecx
jl 0x5632e0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
inc ebp
add ecx, edx
cmp ebp, ecx
jl 0x5632c5
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [ebx + esi*4 + 0x70], ecx
mov esi, dword [ebx + 0x5c]
dec esi
js 0x5635dc
mov ecx, esi
shl ecx, 4
inc esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
add ecx, dword [ebx + 0x50]
movsx esi, word [ecx]
cmp esi, eax
jl 0x563586
lea ebp, [edi + eax]
cmp esi, ebp
jge 0x563586
movsx esi, word [ecx + 2]
cmp esi, edx
jl 0x563586
mov ebp, dword [esp + 0x34]
add ebp, edx
cmp esi, ebp
jl 0x5635a7
movsx esi, word [ecx + 4]
cmp esi, eax
jl 0x5635c6
lea ebp, [edi + eax]
cmp esi, ebp
jge 0x5635c6
movsx esi, word [ecx + 6]
cmp esi, edx
jl 0x5635c6
mov ebp, dword [esp + 0x34]
add ebp, edx
cmp esi, ebp
jge 0x5635c6
cmp byte [ecx + 8], 0
je 0x5635c6
mov edx, dword [esp + 0x1c]
push edx
push ecx
mov ecx, ebx
call fcn.00561800
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
sub ecx, 0x10
dec esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
jne 0x563563
xor edx, edx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x6c]
mov eax, edx
mov edi, dword [ecx]
mov ecx, dword [eax + edi + 0x10]
add eax, edi
test ecx, ecx
jle 0x5636ff
mov eax, dword [eax + 4]
mov dword [esp + 0x20], ecx
add eax, 8
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 4]
mov bl, byte [edx]
mov eax, ecx
mov edi, ecx
shr eax, 0x10
mov ebp, eax
mov eax, dword [esp + 0x24]
and edi, 0xffff
and ebp, 0xffff
mov ecx, dword [eax + 4]
mov byte [esp + 0x98], bl
lea edx, [edi + edi*8]
mov eax, dword [ecx + edx*4 + 8]
lea esi, [ecx + edx*4]
mov ecx, dword [ecx + edx*4 + 0x10]
cmp ecx, eax
jl 0x563666
mov cl, byte [esi + 0xd]
test cl, cl
jne 0x56364f
test eax, eax
jne 0x563680
mov ecx, dword [esi + 0x14]
test ecx, ecx
jle 0x563680
mov edx, dword [esi]
add eax, ecx
push 0
push eax
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x563680
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
lea ecx, [eax + 1]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x98]
mov dword [edx + eax*8], ebp
mov dword [edx + eax*8 + 4], ecx
mov eax, dword [esp + 0x24]
lea edx, [ebp + ebp*8]
mov byte [esp + 0xa0], bl
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx*4 + 8]
lea esi, [ecx + edx*4]
mov ecx, dword [ecx + edx*4 + 0x10]
cmp ecx, eax
jl 0x5636c3
mov cl, byte [esi + 0xd]
test cl, cl
jne 0x5636ac
test eax, eax
jne 0x5636dd
mov ecx, dword [esi + 0x14]
test ecx, ecx
jle 0x5636dd
mov edx, dword [esi]
add eax, ecx
push 0
push eax
mov ecx, esi
call dword [edx + 8]
test al, al
je 0x5636dd
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
lea ecx, [eax + 1]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0xa0]
mov dword [edx + eax*8], edi
mov dword [edx + eax*8 + 4], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add ecx, 0xc
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
jne 0x563606
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x54]
add edx, 0x18
cmp edx, 0x1800
mov dword [esp + 0x10], edx
jl 0x5635e2
mov eax, dword [esp + 0x40]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x3c], vtable.VectorClass_unsigned_short_int_.0
je 0x563739
mov cl, byte [esp + 0x49]
test cl, cl
je 0x563739
push eax
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x49], 0
dec eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x1c], eax
jns 0x56300f
mov ecx, dword [esp + 0xa8]
movsx eax, word [ecx]
mov edx, eax
and edx, reloc.WSOCK32.dll_getsockopt
jns 0x56376a
dec edx
or edx, 0xfffffff8
inc edx
movsx edi, word [ecx + 2]
sub eax, edx
mov ebp, eax
mov eax, edi
and eax, reloc.WSOCK32.dll_getsockopt
mov dword [esp + 0x28], ebp
jns 0x563784
dec eax
or eax, 0xfffffff8
inc eax
sub edi, eax
mov dword [esp + 0x14], edi
lea ecx, [edi + 8]
cmp edi, ecx
mov dword [esp + 0x54], ecx
jge 0x5638b2
lea eax, [ebp + 8]
mov esi, ebp
cmp ebp, eax
mov dword [esp + 0x10], esi
jge 0x5638a5
lea ecx, [esp + 0x38]
push 1
push ecx
mov ecx, ebx
mov word [esp + 0x40], si
mov word [esp + 0x42], di
call fcn.00557300
test al, al
je 0x563891
mov edx, dword [ebx + 0xf4]
mov eax, dword [ebx + 0xf0]
movsx ecx, di
lea eax, [edx + eax + 1]
imul eax, ecx
movsx edx, si
add eax, edx
jns 0x56384d
xor eax, eax
jmp 0x563857
mov esi, 2
lea edi, [ebx + 0xb8]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
push esi
mov ecx, ebx
call fcn.00560a20
dec esi
sub edi, 0x18
test esi, esi
jge 0x5637f6
mov ecx, 0x8198e8
call fcn.00429a90
mov eax, dword [esp + 0x40]
mov dword [esp + 0x3c], vtable.VectorClass_unsigned_short_int_.0
test eax, eax
je 0x5638bc
mov cl, byte [esp + 0x49]
test cl, cl
je 0x5638bc
push eax
call fcn.0076d2d5
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4
mov ecx, dword [ebx + 0x68]
cmp eax, ecx
jl 0x563857
lea eax, [ecx - 1]
mov ecx, dword [ebx + 0x6c]
lea eax, [eax + eax*4]
lea edx, [ebx + 0x8c]
mov esi, 2
lea eax, [ecx + eax*2]
movsx ecx, word [eax]
mov edi, dword [edx]
mov bp, word [eax + 2]
lea ecx, [ecx + ecx*8]
add eax, 2
add edx, 0x18
dec esi
mov word [edi + ecx*4 + 0x18], bp
jne 0x56386b
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
inc esi
lea eax, [ebp + 8]
cmp esi, eax
mov dword [esp + 0x10], esi
jl 0x5637aa
mov ecx, dword [esp + 0x54]
inc edi
cmp edi, ecx
mov dword [esp + 0x14], edi
jl 0x56379c
mov ecx, 0x8198e8
call fcn.00429a90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 4