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

Disassembly:
sub esp, 0x98
mov eax, dword [0x44f8e4]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
xor eax, eax
mov dword [esp + 0x1c], 0xffffffff
push esi
mov esi, dword [esp + 0xa8]
xor edx, edx
mov dword [esp + 0x40], eax
mov ebx, 1
mov dword [esp + 0x3c], eax
mov ebp, ebx
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xe0]
sub eax, dword [esi + 0xe8]
mov dword [esp + 0x24], eax
mov eax, ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x54]
or eax, edx
push edi
mov dword [esp + 0x1c], connect
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x2c], connect
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
je 0x417911
xorps xmm0, xmm0
mov dword [esp + 0x24], ecx
movlpd qword [esp + 0x54], xmm0
xor ebp, ebp
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
movlpd qword [esp + 0x64], xmm0
mov edi, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x10], eax
jmp 0x417925
mov edi, dword [esi + 0xe4]
sub edi, dword [esi + 0xec]
mov dword [esp + 0x10], 0
mov ecx, dword [esi + 0x58]
mov eax, ecx
mov edx, dword [esi + 0x5c]
or eax, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x60], ebp
je 0x417978
xorps xmm0, xmm0
mov dword [esp + 0x14], ecx
movlpd qword [esp + 0x54], xmm0
xor ebx, ebx
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
movlpd qword [esp + 0x64], xmm0
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ecx
jmp 0x417982
mov ecx, dword [esp + 0x28]
xor edx, edx
mov ebp, dword [esp + 0x24]
cmp dword [esi + 0x6c], 4
mov dword [esp + 0x64], ebx
jne 0x4179ab
mov eax, dword [esi + 8]
cmp dword [eax + 0x34], 0
je 0x4179ab
mov ebp, ecx
mov dword [esp + 0x38], 0
mov ebx, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebx
jmp 0x4179af
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x10], eax
jb 0x4179c9
ja 0x4179c1
cmp edi, dword [esp + 0x14]
jb 0x4179c9
mov dword [esp + 0x3c], 0
cmp edx, ebx
jb 0x4179db
ja 0x4179d3
cmp ecx, ebp
jb 0x4179db
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x14]
mov edi, 0x2000
or eax, dword [esp + 0x2c]
mov ecx, 0x4000
je 0x417a42
cmp dword [esi + 0xdc], 0
jne 0x417a42
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x88]
test eax, eax
jne 0x417a0e
cmp dword [esi + 0x34], 6
mov eax, edi
cmove eax, ecx
push eax
call fcn.00429cb1
add esp, 4
mov dword [esi + 0xdc], eax
test eax, eax
je 0x417a8f
mov eax, dword [esi + 8]
mov ecx, 0x4000
mov eax, dword [eax + 0x88]
test eax, eax
jne 0x417a3c
cmp dword [esi + 0x34], 6
mov eax, edi
cmove eax, ecx
mov dword [esi + 0xf4], eax
mov eax, ebp
or eax, ebx
je 0x417aab
cmp dword [esi + 0xd8], 0
jne 0x417aab
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x88]
test eax, eax
jne 0x417a67
cmp dword [esi + 0x34], 6
mov eax, edi
cmove eax, ecx
push eax
call fcn.00429cb1
add esp, 4
mov dword [esi + 0xd8], eax
test eax, eax
je 0x417a8f
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x88]
test eax, eax
je 0x417a99
mov dword [esi + 0xf0], eax
jmp 0x417aab
mov ebp, 0x15
jmp 0x418532
cmp dword [esi + 0x34], 6
mov eax, 0x4000
cmove edi, eax
mov dword [esi + 0xf0], edi
mov ebx, dword [esi + 0xe4]
cmp ebx, dword [esi + 0xec]
jne 0x417acf
mov dword [esi + 0xec], 0
xor ebx, ebx
mov dword [esi + 0xe4], 0
mov edi, dword [esi + 0xe0]
cmp edi, dword [esi + 0xe8]
jne 0x417af3
mov dword [esi + 0xe8], 0
xor edi, edi
mov dword [esi + 0xe0], 0
mov eax, dword [esi + 0xf4]
mov ebp, dword [esi + 0xf0]
push esi
mov dword [esp + 0x58], eax
call fcn.00403570
add esp, 4
cmp eax, 2
jne 0x417b18
xor ebp, ebp
jmp 0x418532
test eax, eax
je 0x417b26
mov ebp, 0x13
jmp 0x418532
xor edx, edx
cmp ebp, edi
setne dl
xor eax, eax
cmp dword [esp + 0x54], ebx
mov dword [esp + 0x54], 1
mov ebp, dword [esp + 0x54]
setne al
mov dword [esp + 0x50], eax
xor ebx, ebx
mov dword [esp + 0x48], edx
xor eax, eax
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test ebx, ebx
jne 0x417b9a
mov eax, edx
or eax, dword [esp + 0x2c]
je 0x417b96
mov eax, edi
or eax, ecx
jne 0x417bc2
cmp dword [esp + 0x18], eax
je 0x417bc2
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x1c]
jne 0x418510
mov eax, dword [esi + 0x50]
or eax, dword [esi + 0x54]
je 0x418510
mov ebp, 0x63
jmp 0x418532
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4184f5
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x1c]
je 0x4184f5
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x30]
jne 0x417bc2
test ebx, ebx
jne 0x4184f5
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x34]
cmp eax, 2
jle 0x417bea
test edx, edx
jne 0x417bec
cmp eax, 0xb
jg 0x4184d2
lea ecx, [eax - 2]
mov edx, 1
shl edx, cl
mov dword [esp + 0x34], edx
test edx, edx
jle 0x417c38
imul eax, dword [esp + 0xb0], 0x3e8
cmp edx, eax
jg 0x4184d2
push 0x30
lea eax, [esp + 0x78]
push 0
push eax
call fcn.00422430
mov eax, dword [esi + 0x38]
add esp, 0xc
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x34]
push eax
push 2
lea eax, [esp + 0x7c]
push eax
call dword [0x44f274]
xor eax, eax
mov dword [esp + 0x34], eax
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x8c]
test eax, eax
je 0x417c58
cmp dword [esi + 0x1ac], 0
ja 0x417c75
jb 0x417c58
cmp dword [esi + 0x1a8], eax
ja 0x417c75
mov eax, dword [ecx + 0x90]
test eax, eax
je 0x417c80
cmp dword [esi + 0x1a4], 0
jb 0x417c80
ja 0x417c75
cmp dword [esi + 0x1a0], eax
jbe 0x417c80
push 0
push esi
call fcn.00419c90
add esp, 8
mov eax, dword [esi + 0xc0]
cmp eax, dword [0x44f328]
jge 0x417cc6
mov eax, dword [esi + 8]
cmp dword [eax + 0x6c], 0
jne 0x417caf
mov eax, dword [eax + 0x14]
push esi
call eax
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x417caf
cmp ebp, 2
jne 0x418532
mov ecx, dword [0x44f310]
mov dword [esi + 0xbc], ecx
mov eax, dword [0x44f328]
mov dword [esi + 0xc0], eax
mov edx, dword [esi + 0x100]
mov eax, edx
mov ecx, dword [esi + 0x104]
or eax, ecx
je 0x417cf2
cmp dword [esi + 0x1ac], ecx
ja 0x4184d9
jb 0x417cf2
cmp dword [esi + 0x1a8], edx
jae 0x4184d9
mov edx, dword [esi + 0x108]
mov eax, edx
mov ecx, dword [esi + 0x10c]
or eax, ecx
je 0x417d1e
cmp dword [esi + 0x1a4], ecx
ja 0x4184d9
jb 0x417d1e
cmp dword [esi + 0x1a0], edx
jae 0x4184d9
mov ecx, dword [esp + 0x28]
mov eax, ecx
mov edx, dword [esp + 0x30]
or eax, edx
je 0x417e4c
cmp dword [esp + 0x64], 0
je 0x417e4c
cmp dword [esi + 0xac], 0
jne 0x417d96
lea eax, [esi + 0xe0]
push eax
mov eax, dword [eax]
sub eax, ebp
push eax
lea eax, [esi + 0xf0]
push eax
lea eax, [esi + 0xd8]
push eax
push esi
call fcn.004035b0
add esp, 0x14
cmp eax, 2
je 0x417b11
test eax, eax
jne 0x417b1c
mov ecx, dword [esi + 0xe0]
lea ebp, [esi + 0xe0]
sub ecx, dword [esi + 0xe8]
xor edx, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
jmp 0x417d9c
lea ebp, [esi + 0xe0]
mov eax, ecx
or eax, edx
jne 0x417dc1
mov dword [ebp], eax
mov ebp, dword [esp + 0x24]
mov dword [esi + 0xe8], eax
mov eax, ebp
or eax, dword [esp + 0x1c]
je 0x417dc5
mov dword [esp + 0x48], 1
jmp 0x417dc5
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], 0x1c
cmp edx, eax
jb 0x417de3
ja 0x417ddb
cmp ecx, ebp
jbe 0x417de3
mov ecx, ebp
mov dword [esp + 0x70], eax
jmp 0x417de7
mov dword [esp + 0x70], edx
push 0x1c
lea eax, [esi + 0x164]
push eax
mov eax, dword [esi + 0xd8]
add eax, dword [esi + 0xe8]
push 0
push ecx
push eax
push dword [esi + 0x3c]
call dword [0x44f27c]
mov ebp, eax
test ebp, ebp
jg 0x417ed7
mov dword [esp + 0x64], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x417e4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x417e4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x417e4c
or dword [esp + 0x44], 2
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x10]
mov eax, edi
or eax, ecx
je 0x417ff5
cmp dword [esp + 0x60], 0
je 0x417ff5
cmp dword [esi + 0xac], 0
jne 0x417eb8
mov eax, dword [esi + 0xe4]
lea edi, [esi + 0xe4]
push edi
sub eax, ebp
push eax
lea eax, [esi + 0xf4]
push eax
lea eax, [esi + 0xdc]
push eax
push esi
call fcn.00403610
add esp, 0x14
cmp eax, 2
je 0x417b11
test eax, eax
jne 0x417b1c
mov edi, dword [edi]
sub edi, dword [esi + 0xec]
xor ecx, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ecx
mov eax, edi
or eax, ecx
jne 0x417f6a
mov dword [esi + 0xec], eax
mov dword [esi + 0xe4], eax
mov eax, dword [esp + 0x18]
jmp 0x417b56
inc dword [esi + 0x1b4]
mov eax, ebp
cdq
add dword [esi + 0x1a0], eax
adc dword [esi + 0x1a4], edx
sub dword [esp + 0x28], eax
sbb dword [esp + 0x30], edx
sub dword [esp + 0x24], eax
mov eax, dword [esi + 0xe0]
sbb dword [esp + 0x1c], edx
add dword [esi + 0xe8], ebp
cmp dword [esi + 0xe8], eax
jne 0x417f26
mov dword [esi + 0xe0], 0
xor eax, eax
mov dword [esi + 0xe8], 0
cmp eax, dword [esi + 0xf0]
mov eax, 1
mov edx, dword [esp + 0x48]
cmovb edx, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], edx
test eax, eax
je 0x417f59
push ebp
push 0
push esi
call eax
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], 0
jmp 0x417b52
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], 0x1c
cmp ecx, edx
jb 0x417f8c
mov eax, dword [esp + 0x14]
ja 0x417f84
cmp edi, eax
jbe 0x417f8c
mov ecx, eax
mov dword [esp + 0x70], edx
jmp 0x417f96
mov eax, dword [esp + 0x10]
mov ecx, edi
mov dword [esp + 0x70], eax
push 0x1c
lea eax, [esi + 0x12c]
push eax
mov eax, dword [esi + 0xdc]
add eax, dword [esi + 0xec]
push 0
push ecx
push eax
push dword [esi + 0x38]
call dword [0x44f27c]
mov ebp, eax
test ebp, ebp
jg 0x418062
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x60], 0
call ebx
test eax, eax
je 0x417ff5
call ebx
cmp eax, 0x2733
je 0x417ff5
call ebx
cmp eax, 0x2733
je 0x417ff5
or dword [esp + 0x44], 1
mov dword [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jb 0x41812f
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
ja 0x418015
cmp ecx, edx
jbe 0x41812f
cmp dword [esp + 0x38], 0
je 0x41812f
cmp dword [esp + 0x48], 0
je 0x41812f
mov eax, dword [esi + 0xf0]
mov edi, 0
mov ebx, dword [esi + 0xe0]
sub eax, ebx
mov dword [esp + 0x5c], 0x1c
sbb edi, edi
sub ecx, edx
mov edx, dword [esp + 0x1c]
sbb edx, dword [esp + 0x30]
cmp edi, edx
jb 0x4180ce
ja 0x41805c
cmp eax, ecx
jbe 0x4180ce
mov dword [esp + 0x70], edx
jmp 0x4180d4
mov ecx, dword [esp + 0x10]
mov eax, ebp
cdq
sub edi, eax
mov dword [esp + 0x20], edi
sbb ecx, edx
sub dword [esp + 0x14], eax
mov eax, dword [esi + 0xe4]
sbb dword [esp + 0x2c], edx
add dword [esi + 0xec], ebp
mov dword [esp + 0x10], ecx
cmp dword [esi + 0xec], eax
jne 0x4180a7
mov dword [esi + 0xe4], 0
xor eax, eax
mov dword [esi + 0xec], 0
cmp eax, dword [esi + 0xf4]
mov eax, 1
mov edx, dword [esp + 0x50]
cmovb edx, eax
mov dword [esp + 0x4c], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], edx
jmp 0x417b56
mov ecx, eax
mov dword [esp + 0x70], edi
lea eax, [esp + 0x5c]
push eax
lea eax, [esi + 0x12c]
push eax
mov eax, dword [esi + 0xd8]
push 0
push ecx
add eax, ebx
push eax
push dword [esi + 0x38]
call dword [0x44f284]
mov ebp, eax
test ebp, ebp
jg 0x4181a8
mov dword [esp + 0x38], 0
je 0x418196
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
test eax, eax
je 0x41812b
call ebx
cmp eax, 0x2733
je 0x41812b
call ebx
cmp eax, 0x2733
jne 0x418196
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x10]
jb 0x4182e9
mov ecx, dword [esp + 0x14]
ja 0x41814b
cmp ecx, edi
jbe 0x4182e9
cmp dword [esp + 0x3c], 0
je 0x4182e9
cmp dword [esp + 0x50], 0
je 0x4182e9
mov eax, dword [esi + 0xf4]
mov edi, 0
mov ebx, dword [esi + 0xe4]
sub eax, ebx
mov dword [esp + 0x5c], 0x1c
sbb edi, edi
sub ecx, dword [esp + 0x20]
sbb edx, dword [esp + 0x10]
cmp edi, edx
jb 0x4181e3
ja 0x418190
cmp eax, ecx
jbe 0x4181e3
mov dword [esp + 0x70], edx
jmp 0x4181e9
mov eax, dword [esp + 0x18]
mov ebx, 1
mov dword [esp + 0x40], ebx
jmp 0x417b4e
mov ebx, dword [esp + 0x40]
mov eax, ebp
cdq
add dword [esp + 0x28], eax
adc dword [esp + 0x30], edx
xor edx, edx
add dword [esi + 0xe0], ebp
xor ecx, ecx
mov eax, dword [esi + 0xe0]
cmp dword [esi + 0xf0], eax
mov eax, dword [esp + 0x18]
cmovne ecx, dword [esp + 0x48]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
jmp 0x417b4e
mov ecx, eax
mov dword [esp + 0x70], edi
lea eax, [esp + 0x5c]
push eax
lea eax, [esi + 0x164]
push eax
mov eax, dword [esi + 0xdc]
push 0
push ecx
add eax, ebx
push eax
push dword [esi + 0x3c]
call dword [0x44f284]
mov ebp, eax
test ebp, ebp
jg 0x418256
mov dword [esp + 0x3c], 0
je 0x418244
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
test eax, eax
je 0x4182e9
call ebx
cmp eax, 0x2733
je 0x4182e9
call ebx
cmp eax, 0x2733
je 0x4182e9
mov ebx, dword [esp + 0x40]
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x417b4e
inc dword [esi + 0x1b0]
mov eax, ebp
mov edi, dword [esp + 0x20]
cdq
add dword [esi + 0x1a8], eax
adc dword [esi + 0x1ac], edx
add edi, eax
mov eax, dword [esi + 0x10]
adc dword [esp + 0x10], edx
add dword [esi + 0xe4], ebp
mov dword [esp + 0x20], edi
test eax, eax
je 0x41829c
push 0
push ebp
push esi
call eax
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 0xf4]
xor ecx, ecx
cmp eax, dword [esi + 0xe4]
cmovne ecx, dword [esp + 0x50]
cmp dword [esi + 0x6c], 4
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x10]
jne 0x4182d6
mov eax, dword [esi + 8]
cmp dword [eax + 0x34], 0
je 0x4182d6
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], 0
mov ebx, dword [esp + 0x40]
xor edx, edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], edx
jmp 0x417b56
xor ebx, ebx
nop dword [eax + eax]
xor edi, edi
test ebx, ebx
jne 0x418306
push 0x30
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.00422430
add esp, 0xc
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x4183ba
test ebx, ebx
jne 0x418355
mov eax, dword [esi + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x1c]
je 0x41833d
cmp dword [esp + 0x38], edi
jne 0x41833d
cmp dword [esp + 0x48], edi
je 0x41833d
mov eax, 0x300
or word [esp + 0x78], ax
cmp dword [esp + 0x60], edi
jne 0x4183b5
mov eax, dword [esp + 0x20]
or eax, dword [esp + 0x10]
je 0x4183b5
or word [esp + 0x78], 0x10
jmp 0x4183b5
test byte [esp + 0x7a], 5
je 0x41836b
or dword [esp + 0x44], 1
mov dword [esp + 0x40], 1
jmp 0x4183b5
test dword [esp + 0x7a], 0x300
mov eax, 1
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x60]
cmovne ecx, eax
test byte [esp + 0x7a], 0x10
mov dword [esp + 0x38], ecx
cmovne edi, eax
test byte [esp + 0x7a], 2
mov dword [esp + 0x60], edi
je 0x4183b5
test dword [esp + 0x78], 0x300
cmovne ecx, eax
test byte [esp + 0x78], 0x10
mov dword [esp + 0x38], ecx
cmovne edx, eax
mov dword [esp + 0x40], edx
mov edi, 1
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x41846e
test ebx, ebx
jne 0x41840a
mov eax, dword [esi + 0x3c]
mov dword [esp + edi*8 + 0x74], eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x2c]
je 0x4183f1
cmp dword [esp + 0x3c], ebx
jne 0x4183f1
cmp dword [esp + 0x50], ebx
je 0x4183f1
mov eax, 0x300
or word [esp + edi*8 + 0x78], ax
cmp dword [esp + 0x64], 0
jne 0x41846d
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x30]
je 0x41846d
or word [esp + edi*8 + 0x78], 0x10
jmp 0x41846d
movzx eax, word [esp + edi*8 + 0x7a]
test al, 5
je 0x418422
or dword [esp + 0x44], 2
mov dword [esp + 0x18], 1
jmp 0x41846d
mov ecx, dword [esp + 0x3c]
test eax, 0x300
cmovne ecx, dword [esp + 0x54]
test al, 0x10
mov eax, dword [esp + 0x64]
cmovne eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
movzx eax, word [esp + edi*8 + 0x7a]
mov dword [esp + 0x3c], ecx
test al, 2
je 0x41846d
movzx eax, word [esp + edi*8 + 0x78]
test eax, 0x300
cmovne ecx, dword [esp + 0x54]
test al, 0x10
mov eax, 1
mov dword [esp + 0x3c], ecx
cmovne edx, eax
mov dword [esp + 0x18], edx
inc edi
test ebx, ebx
jne 0x418499
test edi, edi
je 0x4184ee
imul eax, dword [esp + 0xb0], 0x3e8
push eax
push edi
lea eax, [esp + 0x7c]
push eax
call dword [0x44f274]
mov ebp, eax
test ebp, ebp
js 0x4184b4
cmp ebp, 1
jl 0x4184e0
inc ebx
cmp ebx, 2
jl 0x4182f0
inc dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
jmp 0x417b4e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4184e7
inc dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
jmp 0x417b4e
mov ebp, 0x5d
jmp 0x418532
mov ebp, 0xa
jmp 0x418532
mov ebp, 0x5c
jmp 0x418532
mov ebp, 0x5b
jmp 0x418532
mov ebp, 0x5a
jmp 0x418532
or edx, dword [esp + 0x2c]
jne 0x417b72
mov eax, dword [esi + 0x58]
or eax, dword [esi + 0x5c]
je 0x417b72
lea ebp, [edx + 0x62]
jmp 0x418532
mov eax, dword [esp + 0x44]
test eax, eax
je 0x41851d
lea ebp, [eax + 0x5e]
jmp 0x418532
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x30]
jne 0x41852d
xor ebp, ebp
or edi, ecx
je 0x418532
mov ebp, 0x5e
mov ecx, dword [esp + 0xa4]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420cbf
add esp, 0x98
ret