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

Disassembly:
push 0xffffffffffffffff
push 0x58c99a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], 0
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x422257
push 0
push 0xc
call fcn.00423790
mov esi, dword [esp + 0x6c]
mov eax, dword [esi + 8]
cmp dword [eax + 0x44], 0
je 0x42228e
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x422273
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esp + 0x6c]
mov esi, dword [esi + 8]
mov dword [esi + 0xc], 0xffffffff
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + 0x70]
call fcn.00421e20
jmp 0x42268a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ecx
mov eax, esp
mov dword [eax], esi
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], esp
test eax, eax
je 0x4222ab
add eax, 4
push eax
call edi
mov byte [esp + 0x64], 1
mov byte [esp + 0x64], 0
call fcn.00422760
mov edx, dword [esp + 0x6c]
test al, al
je 0x4222f3
mov eax, dword [edx + 8]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4222d4
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 8]
mov dword [eax + 0xc], 0xffffffff
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + 0x70]
call fcn.00421e20
jmp 0x42268a
mov ebx, dword [edx + 0x10]
mov dword [esp + 0x24], ebx
test ebx, ebx
je 0x422304
lea eax, [ebx + 4]
push eax
call edi
mov byte [esp + 0x60], 2
test ebx, ebx
jne 0x422347
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x422323
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 8]
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x70]
call fcn.00421e20
mov byte [esp + 0x60], 0
jmp 0x42268a
mov dword [esp + 0x1c], 0
mov byte [esp + 0x60], 3
lea esi, [esp + 0x1c]
call fcn.00422830
test eax, eax
je 0x42263e
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x42263e
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
lea ebp, [esi + 4]
push ebp
mov dword [eax], esi
call edi
mov byte [esp + 0x64], 4
push ecx
mov eax, esp
mov dword [eax], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x38], esp
push eax
mov dword [esp + 0x34], eax
call edi
mov byte [esp + 0x68], 5
mov byte [esp + 0x68], 3
call fcn.00413370
add esp, 8
test eax, eax
je 0x42263e
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x42256c
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x30], eax
test eax, eax
je 0x422549
lea edx, [esp + 0x2c]
push edx
call fcn.004030f0
mov byte [esp + 0x60], 6
xor ecx, ecx
push ecx
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x84]
add edx, 0xc90
push edx
mov edx, dword [eax + 0x80]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
push edx
push ecx
push ecx
mov dword [esp + 0x40], eax
mov eax, esp
mov dword [esp + 0x6c], esp
push ebp
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x64], ecx
lea ebx, [esp + 0x58]
mov dword [eax], esi
call edi
mov byte [esp + 0x88], 7
mov ecx, dword [esp + 0x58]
push ecx
mov byte [esp + 0x8c], 6
mov edx, dword [esp + 0x44]
mov ecx, ebx
call fcn.0042b4b0
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0x80]
mov edi, dword [ecx + 8]
test eax, eax
jne 0x4224e1
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x38]
push ecx
movzx ecx, byte [esp + 0x37]
push ecx
movzx ecx, byte [esp + 0x3a]
push ecx
mov ecx, dword [esp + 0x3c]
movzx ebx, ch
push ebx
movzx ecx, cl
push ecx
movzx ecx, word [esi + 0x10]
push ecx
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [edi + 0xc]
push ecx
push str.CONNECT_on_end__d____s:_d__FAIL__destip_d._d._d._d__err_u__reason_u__ube_X__remoteSk__d___fCh_d
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
push 7
mov ebx, 0x604408
mov dword [esp + 0x90], eax
mov dword [ecx + 0xc], eax
call fcn.00446ca0
add esp, 0x48
jmp 0x42253a
mov ecx, dword [esp + 0x34]
push ecx
movzx ecx, byte [esp + 0x27]
xor eax, eax
push eax
push ecx
movzx ecx, byte [esp + 0x2e]
push ecx
mov ecx, dword [esp + 0x30]
movzx ebx, ch
push ebx
movzx ecx, cl
push ecx
movzx ecx, word [esi + 0x10]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [edi + 0xc]
push ecx
push str.CONNECT_on_end__d____s:_d__OK__destip_d._d._d._d__ube_X__remoteSk__d_
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
push 7
mov ebx, 0x604408
mov dword [esp + 0x84], eax
mov dword [ecx + 0xc], eax
call fcn.00446ca0
add esp, 0x3c
mov byte [esp + 0x60], 3
lea edx, [esp + 0x2c]
push edx
call fcn.00403090
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 8]
or ecx, 0xffffffff
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 0x10]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x70]
jmp 0x422669
cmp eax, 2
jne 0x4225d6
lea edx, [esi + 0x18]
call fcn.00494770
test al, al
je 0x4225d6
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0x80]
push 0
push 0
push ecx
mov eax, esp
mov dword [esp + 0x50], esp
push ebp
mov dword [esp + 0x28], edx
mov dword [eax], esi
call edi
mov byte [esp + 0x6c], 8
push ecx
mov eax, esp
mov dword [eax], ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x40], esp
push eax
call edi
mov byte [esp + 0x70], 9
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x74]
push ecx
call fcn.00420f70
push eax
mov byte [esp + 0x78], 3
mov ecx, dword [esp + 0x30]
call fcn.004216d0
jmp 0x42266e
cmp dword [esi + 8], 3
jne 0x42263e
lea edx, [esi + 0x18]
call fcn.00494770
test al, al
je 0x42263e
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 0x80]
push 0
push 0
push ecx
mov dword [esp + 0x24], eax
mov eax, esp
mov dword [esp + 0x50], esp
push ebp
mov dword [eax], esi
call edi
mov byte [esp + 0x6c], 0xa
push ecx
mov ecx, dword [esp + 0x38]
mov eax, esp
mov dword [esp + 0x40], esp
push ecx
mov dword [eax], ebx
call edi
mov byte [esp + 0x70], 0xb
mov eax, dword [esp + 0x7c]
mov edx, dword [eax + 0x74]
push edx
call fcn.00420f70
push eax
mov byte [esp + 0x78], 3
mov ecx, dword [esp + 0x30]
call fcn.004216d0
jmp 0x42266e
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x422654
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 8]
mov dword [eax + 0xc], 0xffffffff
mov edx, dword [esp + 0x6c]
mov ecx, dword [edx + 0x70]
call fcn.00421e20
mov byte [esp + 0x60], 2
lea eax, [esp + 0x1c]
call fcn.0042d520
mov byte [esp + 0x60], 0
lea eax, [esp + 0x24]
call fcn.0042d520
mov edi, dword [esp + 0x3c]
lea esi, [edi + 0xc5c]
xor ebp, ebp
mov dword [esp + 0x18], ebp
test esi, esi
je 0x4226ab
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, esi
mov dword [esp + 0x18], ebp
mov byte [esp + 0x60], 0xc
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x48]
add edi, 0xc3c
push ecx
call fcn.0042d420
mov esi, dword [esp + 0x44]
mov ebx, dword [edi + 0x18]
mov eax, dword [edi]
test esi, esi
je 0x4226d6
cmp esi, eax
je 0x4226db
call fcn.004a35f3
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4226f0
push eax
push esi
lea edx, [esp + 0x4c]
push edx
push edi
call fcn.0042d130
lea esi, [esp + 0x6c]
call fcn.0042d4b0
mov byte [esp + 0x60], 0
test ebp, ebp
je 0x422709
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x60], 0xffffffff
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x422735
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x422735
test esi, esi
je 0x422735
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004a314d
add esp, 0x50
ret 8