Function at 0x454770
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4344
call fcn.0047f340
mov eax, dword [0x4d1788]
push ebx
mov dword [esp + 0x4344], eax
mov eax, dword [ebp + 0x14]
test eax, eax
push esi
push edi
je 0x454799
mov byte [eax], 0
mov edi, dword [ebp + 0x18]
test edi, edi
jne 0x4547b6
call fcn.004537e0
mov edi, eax
and edi, 0x3fff
or edi, 0x4000
mov dword [ebp + 0x18], edi
mov eax, dword [ebp + 0x1c]
xor esi, esi
test eax, eax
je 0x4547c2
mov esi, dword [eax + 4]
mov ebx, dword [ebp + 0xc]
push ebx
push esi
push edi
call fcn.00456c60
push ebx
push esi
inc edi
push edi
mov dword [esp + 0x2c], eax
call fcn.00456c60
mov ecx, dword [esp + 0x2c]
add esp, 0x18
cmp ecx, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x454e91
cmp eax, 0xffffffff
je 0x454e91
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor eax, eax
mov byte [esp + 0xe], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x12], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov byte [esp + 0xf], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x358], ax
mov word [esp + 0x250], ax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x4c], eax
inc eax
cmp eax, esi
mov dword [esp + 0x48], 1
jbe 0x45485e
mov ecx, eax
mov edx, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + eax*4 + 0x4c], edx
je 0x454870
inc eax
cmp eax, 1
jb 0x454864
cmp eax, 1
jne 0x454881
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], 2
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x45488a
mov ecx, eax
cmp dword [esp + 0x18], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x249f0
jne 0x4548a0
mov dword [esp + 0x3c], esi
lea eax, [esp + 0x38]
push eax
push 0
push 0
lea edx, [esp + 0x54]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
mov esi, eax
je 0x454d2f
test edi, edi
jne 0x454b8e
mov ecx, dword [esp + 0x18]
mov al, byte [esp + 0xe]
mov esi, dword [ebp + 8]
inc ecx
test al, al
mov dword [esp + 0x18], ecx
jne 0x45490a
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x25c]
push ecx
push esi
push edx
mov ecx, 1
call fcn.00454650
mov ebx, dword [ebp + 0xc]
add esp, 0x10
mov al, byte [esp + 0x10]
test al, al
jne 0x4549b9
mov al, byte [esp + 0xe]
test al, al
je 0x4549b9
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4549b9
cmp word [esp + 0x2c], 0
je 0x4549b9
xor eax, eax
push 0xa
push eax
push eax
mov ecx, 0x132
lea edi, [esp + 0x11c4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x264]
push eax
lea ecx, [esp + 0x11c8]
push ecx
call fcn.00453840
push ebx
lea edx, [esp + 0x168]
push edx
push 0x800
lea eax, [esp + 0x1b68]
push eax
lea ecx, [esp + 0x11dc]
push ecx
call fcn.00453960
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push ebx
push edx
push ecx
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x1b80]
push edx
push eax
call fcn.00456f80
add esp, 0x40
call fcn.0048135e
lea edi, [eax + 0xa]
nop
call fcn.0048135e
cmp eax, edi
jle 0x4549b0
mov al, byte [esp + 0xf]
test al, al
jne 0x454a49
push 2
xor eax, eax
push 1
mov ecx, 0x132
lea edi, [esp + 0x830]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x838]
push edx
call fcn.00453840
push ebx
lea eax, [esp + 0x168]
push eax
push 0x800
lea ecx, [esp + 0x3368]
push ecx
lea edx, [esp + 0x84c]
push edx
call fcn.00453960
mov edx, dword [esi + 4]
xor ecx, ecx
mov cx, word [esi]
push ebx
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
lea eax, [esp + 0x3380]
push eax
push ecx
call fcn.00456f80
add esp, 0x40
call fcn.0048135e
lea edi, [eax + 0xa]
jmp 0x454a40
call fcn.0048135e
cmp eax, edi
jle 0x454a40
mov al, byte [esp + 0x11]
test al, al
jne 0x454ad9
xor eax, eax
push 3
push eax
mov ecx, 0x132
lea edi, [esp + 0xcf8]
push 1
lea edx, [esp + 0x264]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0xd00]
push eax
call fcn.00453840
push ebx
lea ecx, [esp + 0x168]
push ecx
push 0x800
lea edx, [esp + 0x2368]
push edx
lea eax, [esp + 0xd14]
push eax
call fcn.00453960
mov edx, dword [esi + 4]
xor ecx, ecx
mov cx, word [esi]
push ebx
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
lea eax, [esp + 0x2380]
push eax
push ecx
call fcn.00456f80
add esp, 0x40
call fcn.0048135e
lea esi, [eax + 0xa]
jmp 0x454ad0
call fcn.0048135e
cmp eax, esi
jle 0x454ad0
mov al, byte [esp + 0xe]
test al, al
je 0x454cfc
mov al, byte [esp + 0x13]
test al, al
jne 0x454cfc
mov esi, dword [esp + 0x24]
test esi, esi
je 0x454cfc
cmp word [esp + 0x20], 0
je 0x454cfc
xor eax, eax
push 0xb
push eax
push eax
mov ecx, 0x132
lea edi, [esp + 0x168c]
lea edx, [esp + 0x264]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x1690]
push eax
call fcn.00453840
push ebx
lea ecx, [esp + 0x168]
push ecx
push 0x800
lea edx, [esp + 0x2b68]
push edx
lea eax, [esp + 0x16a4]
push eax
call fcn.00453960
mov ecx, dword [esp + 0x48]
push ebx
push ecx
push esi
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x2b80]
push edx
push eax
call fcn.00456f80
add esp, 0x40
call fcn.0048135e
lea esi, [eax + 0xa]
lea ebx, [ebx]
call fcn.0048135e
cmp eax, esi
jle 0x454b80
jmp 0x454cfc
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x28], 0
lea esp, [esp]
mov eax, dword [esp + 0x28]
test eax, eax
mov edi, dword [esp + 0x14]
je 0x454bb0
mov edi, dword [esp + 0x1c]
cmp edi, 0xffffffff
je case.0x454c39.4
lea ecx, [esp + 0x48]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je case.0x454c39.4
push ebx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x3b58]
push edx
push edi
mov dword [esp + 0x4c], 0x800
call fcn.00456e60
xor eax, eax
mov ecx, 0x132
lea edi, [esp + 0x378]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x4c]
push ebx
lea eax, [esp + 0x37c]
push eax
push ecx
lea edx, [esp + 0x3b6c]
push edx
call fcn.00453370
movzx eax, byte [esp + 0x38c]
add esp, 0x28
dec eax
cmp eax, 0xa
ja case.0x454c39.4
movzx eax, byte [eax + 0x454ee8]
jmp dword [eax*4 + 0x454ed0]
mov al, byte [esp + 0xe]
test al, al
jne 0x454c91
test esi, esi
mov edi, dword [esp + 0x380]
mov ax, word [esp + 0x37c]
mov dword [esp + 0x24], edi
mov word [esp + 0x20], ax
je 0x454c71
mov edx, dword [ebp + 0x18]
movzx ecx, ax
cmp ecx, edx
sete dl
mov byte [esi], dl
mov ecx, dword [esp + 0x3b8]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x454c89
mov word [ecx], ax
mov dword [ecx + 4], edi
mov dword [esp + 0x18], 0
mov byte [esp + 0xe], 1
jmp case.0x454c39.4
mov byte [esp + 0xf], 1
jmp case.0x454c39.4
mov byte [esp + 0x11], 1
jmp case.0x454c39.4
mov al, byte [esp + 0x10]
test al, al
jne 0x454cd4
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x380], edx
mov byte [esp + 0x12], 0
jne 0x454cd4
mov ax, word [esp + 0x20]
cmp word [esp + 0x37c], ax
jne 0x454cd4
mov byte [esp + 0x12], 1
mov byte [esp + 0x10], 1
jmp case.0x454c39.4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x454ce5
mov byte [eax], 1
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 2
mov dword [esp + 0x28], eax
jl 0x454ba0
cmp dword [esp + 0x18], 7
jl 0x454843
mov ecx, dword [esp + 0x24]
push 0
push ecx
push 0
call fcn.00456c60
add esp, 0xc
cmp eax, 0xffffffff
je 0x454de8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x454dea
push str._in_select
push esi
call fcn.004813d8
add esp, 4
push eax
push 0x4b4000
push esi
push 0x4b5324
push 0x4d60d0
call fcn.00453f10
add esp, 8
mov ecx, eax
call fcn.004543a0
push eax
call fcn.00453f10
add esp, 8
push eax
call fcn.00453f10
add esp, 8
push eax
call fcn.00453f10
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.00454510
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
mov cl, byte [edx + edi + 8]
lea eax, [edx + edi]
xor esi, esi
test cl, 6
jne 0x454daa
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x2c]
cmp eax, 0xffffffff
jne 0x454daa
mov esi, 4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
test esi, esi
je 0x454eb5
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x28]
or eax, esi
test edx, edx
jne 0x454dc8
or eax, 4
push 0
push eax
call fcn.00491da7
mov eax, 1
mov ecx, dword [esp + 0x434c]
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov cl, byte [esp + 0xe]
test cl, cl
je 0x454e79
test al, al
je 0x454e58
mov al, byte [esp + 0x12]
test al, al
je 0x454e40
mov al, byte [esp + 0xf]
test al, al
je 0x454e22
mov eax, 4
mov ecx, dword [esp + 0x434c]
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x11]
neg al
sbb eax, eax
add eax, 6
mov ecx, dword [esp + 0x434c]
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 7
mov ecx, dword [esp + 0x434c]
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0xf]
neg al
sbb eax, eax
and eax, 0xfffffffa
add eax, 8
mov ecx, dword [esp + 0x434c]
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
mov ecx, dword [esp + 0x434c]
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Some_problem_opening_port_interface_to_send_on
push 0x4d60d0
call fcn.00453f10
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00454510
mov ecx, esi
call fcn.00453d40
mov ecx, dword [esp + 0x434c]
mov eax, 1
call fcn.0047e6cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret