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

Disassembly:
sub esp, 0x98
mov eax, dword [0x44f874]
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]
mov ebx, 1
mov dword [esp + 0x40], eax
mov ebp, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xe0]
sub eax, dword [esi + 0xe8]
mov dword [esp + 0x24], eax
mov eax, ecx
push edi
xor edi, edi
mov dword [esp + 0x1c], connect
or eax, edx
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x20], connect
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], edi
je 0x4178d1
xorps xmm0, xmm0
mov dword [esp + 0x24], ecx
movlpd qword [esp + 0x54], xmm0
xor ebp, ebp
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
movlpd qword [esp + 0x64], xmm0
mov edi, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x10], eax
jmp 0x4178e5
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 + 0x14], edi
mov dword [esp + 0x60], ebp
je 0x417938
xorps xmm0, xmm0
mov dword [esp + 0x18], 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 + 0x20], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
jmp 0x417942
mov ecx, dword [esp + 0x28]
xor edx, edx
mov ebp, dword [esp + 0x24]
cmp dword [esi + 0x6c], 4
mov dword [esp + 0x64], ebx
jne 0x41796b
mov eax, dword [esi + 8]
cmp dword [eax + 0x34], 0
je 0x41796b
mov ebp, ecx
mov dword [esp + 0x34], 0
mov ebx, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebx
jmp 0x41796f
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x10], eax
jb 0x417989
ja 0x417981
cmp edi, dword [esp + 0x18]
jb 0x417989
mov dword [esp + 0x38], 0
cmp edx, ebx
jb 0x41799b
ja 0x417993
cmp ecx, ebp
jb 0x41799b
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x18]
mov edi, 0x2000
or eax, dword [esp + 0x20]
mov ecx, 0x4000
je 0x417a02
cmp dword [esi + 0xdc], 0
jne 0x417a02
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x88]
test eax, eax
jne 0x4179ce
cmp dword [esi + 0x34], 6
mov eax, edi
cmove eax, ecx
push eax
call fcn.00429c81
add esp, 4
mov dword [esi + 0xdc], eax
test eax, eax
je 0x417a4f
mov eax, dword [esi + 8]
mov ecx, 0x4000
mov eax, dword [eax + 0x88]
test eax, eax
jne 0x4179fc
cmp dword [esi + 0x34], 6
mov eax, edi
cmove eax, ecx
mov dword [esi + 0xf4], eax
mov eax, ebp
or eax, ebx
je 0x417a6b
cmp dword [esi + 0xd8], 0
jne 0x417a6b
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x88]
test eax, eax
jne 0x417a27
cmp dword [esi + 0x34], 6
mov eax, edi
cmove eax, ecx
push eax
call fcn.00429c81
add esp, 4
mov dword [esi + 0xd8], eax
test eax, eax
je 0x417a4f
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x88]
test eax, eax
je 0x417a59
mov dword [esi + 0xf0], eax
jmp 0x417a6b
mov ebp, 0x15
jmp 0x4184d8
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 0x417a8f
mov dword [esi + 0xec], 0
xor ebx, ebx
mov dword [esi + 0xe4], 0
mov edi, dword [esi + 0xe0]
cmp edi, dword [esi + 0xe8]
jne 0x417ab3
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.004034f0
add esp, 4
cmp eax, 2
jne 0x417ad8
xor ebp, ebp
jmp 0x4184d8
test eax, eax
je 0x417ae6
mov ebp, 0x13
jmp 0x4184d8
xor eax, eax
cmp ebp, edi
setne al
mov dword [esp + 0x48], eax
xor eax, eax
cmp dword [esp + 0x54], ebx
mov dword [esp + 0x54], 1
mov ebp, dword [esp + 0x54]
setne al
xor ebx, ebx
mov dword [esp + 0x50], eax
xor edi, edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test ebx, ebx
jne 0x417b52
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x20]
je 0x417b52
mov eax, ecx
or eax, edx
jne 0x417b7a
test edi, edi
je 0x417b7a
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x1c]
jne 0x4184b6
mov eax, dword [esi + 0x50]
or eax, dword [esi + 0x54]
je 0x4184b6
mov ebp, 0x63
jmp 0x4184d8
test edi, edi
jne 0x418495
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x1c]
je 0x418495
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
jne 0x417b7a
test ebx, ebx
jne 0x418495
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
cmp eax, 2
jle 0x417ba2
test edx, edx
jne 0x417ba4
cmp eax, 0xb
jg 0x418472
lea ecx, [eax - 2]
mov edx, 1
shl edx, cl
mov dword [esp + 0x30], edx
test edx, edx
jle 0x417bf0
imul eax, dword [esp + 0xb0], 0x3e8
cmp edx, eax
jg 0x418472
push 0x30
lea eax, [esp + 0x78]
push 0
push eax
call fcn.00422400
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 + 0x30]
push eax
push 2
lea eax, [esp + 0x7c]
push eax
call dword [0x44f204]
xor eax, eax
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x8c]
test eax, eax
je 0x417c10
cmp dword [esi + 0x1ac], 0
ja 0x417c2d
jb 0x417c10
cmp dword [esi + 0x1a8], eax
ja 0x417c2d
mov eax, dword [ecx + 0x90]
test eax, eax
je 0x417c38
cmp dword [esi + 0x1a4], 0
jb 0x417c38
ja 0x417c2d
cmp dword [esi + 0x1a0], eax
jbe 0x417c38
push 0
push esi
call fcn.00419c40
add esp, 8
mov eax, dword [esi + 0xc0]
cmp eax, dword [0x44f2b8]
jge 0x417c7e
mov eax, dword [esi + 8]
cmp dword [eax + 0x6c], 0
jne 0x417c67
mov eax, dword [eax + 0x14]
push esi
call eax
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x417c67
cmp ebp, 2
jne 0x4184d8
mov ecx, dword [0x44f2a0]
mov dword [esi + 0xbc], ecx
mov eax, dword [0x44f2b8]
mov dword [esi + 0xc0], eax
mov edx, dword [esi + 0x100]
mov eax, edx
mov ecx, dword [esi + 0x104]
or eax, ecx
je 0x417caa
cmp dword [esi + 0x1ac], ecx
ja 0x418479
jb 0x417caa
cmp dword [esi + 0x1a8], edx
jae 0x418479
mov edx, dword [esi + 0x108]
mov eax, edx
mov ecx, dword [esi + 0x10c]
or eax, ecx
je 0x417cd6
cmp dword [esi + 0x1a4], ecx
ja 0x418479
jb 0x417cd6
cmp dword [esi + 0x1a0], edx
jae 0x418479
mov ecx, dword [esp + 0x28]
mov eax, ecx
mov edx, dword [esp + 0x2c]
or eax, edx
je 0x417e05
cmp dword [esp + 0x64], 0
je 0x417e05
cmp dword [esi + 0xac], 0
jne 0x417d4e
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.00403530
add esp, 0x14
cmp eax, 2
je 0x417ad1
test eax, eax
jne 0x417adc
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 + 0x2c], edx
jmp 0x417d54
lea ebp, [esi + 0xe0]
mov eax, ecx
or eax, edx
jne 0x417d79
mov dword [ebp], eax
mov ebp, dword [esp + 0x24]
mov dword [esi + 0xe8], eax
mov eax, ebp
or eax, dword [esp + 0x1c]
je 0x417d7d
mov dword [esp + 0x48], 1
jmp 0x417d7d
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], 0x1c
cmp edx, eax
jb 0x417d9b
ja 0x417d93
cmp ecx, ebp
jbe 0x417d9b
mov ecx, ebp
mov dword [esp + 0x70], eax
jmp 0x417d9f
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 [0x44f20c]
mov ebp, eax
test ebp, ebp
jg 0x417e90
mov dword [esp + 0x64], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x417e05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x417e05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x417e05
or dword [esp + 0x44], 2
mov edi, 1
mov dword [esp + 0x40], edi
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov edx, dword [esp + 0x10]
or eax, edx
je 0x417fa4
cmp dword [esp + 0x60], 0
je 0x417fa4
cmp dword [esi + 0xac], 0
jne 0x417e75
lea eax, [esi + 0xe4]
push eax
mov eax, dword [eax]
sub eax, ebp
push eax
lea eax, [esi + 0xf4]
push eax
lea eax, [esi + 0xdc]
push eax
push esi
call fcn.00403590
add esp, 0x14
cmp eax, 2
je 0x417ad1
test eax, eax
jne 0x417adc
mov ecx, dword [esi + 0xe4]
sub ecx, dword [esi + 0xec]
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov eax, ecx
or eax, edx
jne 0x417f1f
mov dword [esi + 0xec], eax
mov dword [esi + 0xe4], eax
jmp 0x417b16
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 + 0x2c], 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 0x417edf
mov dword [esi + 0xe0], 0
xor eax, eax
mov dword [esi + 0xe8], 0
cmp eax, dword [esi + 0xf0]
mov eax, 1
mov ecx, dword [esp + 0x48]
cmovb ecx, eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x48], ecx
test eax, eax
je 0x417f12
push ebp
push 0
push esi
call eax
mov ecx, dword [esp + 0x3c]
add esp, 0xc
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], 0
jmp 0x417b0e
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x5c], 0x1c
cmp edx, ebp
jb 0x417f41
mov eax, dword [esp + 0x18]
ja 0x417f39
cmp ecx, eax
jbe 0x417f41
mov ecx, eax
mov dword [esp + 0x70], ebp
jmp 0x417f45
mov dword [esp + 0x70], edx
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 [0x44f20c]
mov ebp, eax
test ebp, ebp
jg 0x418011
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x60], 0
call edi
test eax, eax
je 0x417fa4
call edi
cmp eax, 0x2733
je 0x417fa4
call edi
cmp eax, 0x2733
je 0x417fa4
or dword [esp + 0x44], 1
mov dword [esp + 0x3c], 1
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jb 0x418119
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
ja 0x417fc4
cmp ecx, edx
jbe 0x418119
cmp dword [esp + 0x34], 0
je 0x418119
cmp dword [esp + 0x48], 0
je 0x418119
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 + 0x2c]
cmp edi, edx
jb 0x418077
ja 0x41800b
cmp eax, ecx
jbe 0x418077
mov dword [esp + 0x70], edx
jmp 0x41807d
mov ecx, dword [esp + 0x14]
mov eax, ebp
cdq
sub ecx, eax
mov dword [esp + 0x14], ecx
sbb dword [esp + 0x10], edx
sub dword [esp + 0x18], eax
mov eax, dword [esi + 0xe4]
sbb dword [esp + 0x20], edx
add dword [esi + 0xec], ebp
cmp dword [esi + 0xec], eax
jne 0x418054
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 dword [esp + 0x50], edx
jmp 0x417b12
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 [0x44f214]
mov ebp, eax
test ebp, ebp
jg 0x4180de
mov dword [esp + 0x34], 0
je 0x4180cc
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
je 0x418119
call edi
cmp eax, 0x2733
je 0x418119
call edi
cmp eax, 0x2733
je 0x418119
mov edi, dword [esp + 0x40]
mov ebx, 1
mov dword [esp + 0x3c], ebx
jmp 0x417b0e
mov ebx, dword [esp + 0x3c]
mov eax, ebp
cdq
add dword [esp + 0x28], eax
adc dword [esp + 0x2c], edx
xor edi, edi
add dword [esi + 0xe0], ebp
xor ecx, ecx
mov eax, dword [esi + 0xe0]
cmp dword [esi + 0xf0], eax
mov dword [esp + 0x4c], edi
cmovne ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x48], ecx
jmp 0x417b0e
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x10]
jb 0x41828a
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
ja 0x418139
cmp ecx, edx
jbe 0x41828a
cmp dword [esp + 0x38], 0
je 0x41828a
cmp dword [esp + 0x50], 0
je 0x41828a
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, edx
mov edx, dword [esp + 0x20]
sbb edx, dword [esp + 0x10]
cmp edi, edx
jb 0x418186
ja 0x418180
cmp eax, ecx
jbe 0x418186
mov dword [esp + 0x70], edx
jmp 0x41818c
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 [0x44f214]
mov ebp, eax
test ebp, ebp
jg 0x4181f9
mov dword [esp + 0x38], 0
je 0x4181e7
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
je 0x41828a
call edi
cmp eax, 0x2733
je 0x41828a
call edi
cmp eax, 0x2733
je 0x41828a
mov ebx, dword [esp + 0x3c]
mov edi, 1
mov dword [esp + 0x40], edi
jmp 0x417b0e
inc dword [esi + 0x1b0]
mov eax, ebp
cdq
add dword [esi + 0x1a8], eax
adc dword [esi + 0x1ac], edx
add dword [esp + 0x14], eax
mov eax, dword [esi + 0x10]
adc dword [esp + 0x10], edx
add dword [esi + 0xe4], ebp
test eax, eax
je 0x418239
push 0
push ebp
push esi
call eax
mov ecx, dword [esp + 0x3c]
add esp, 0xc
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0x30], ecx
mov eax, dword [esi + 0xf4]
xor ecx, ecx
cmp eax, dword [esi + 0xe4]
mov edx, dword [esp + 0x10]
cmovne ecx, dword [esp + 0x50]
cmp dword [esi + 0x6c], 4
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x14]
jne 0x418277
mov eax, dword [esi + 8]
cmp dword [eax + 0x34], 0
je 0x418277
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], 0
mov ebx, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x40]
jmp 0x417b16
xor ebx, ebx
nop dword [eax]
xor edi, edi
test ebx, ebx
jne 0x4182a6
push 0x30
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.00422400
add esp, 0xc
mov edx, dword [esp + 0x3c]
test edx, edx
jne 0x41835a
test ebx, ebx
jne 0x4182f5
mov eax, dword [esi + 0x38]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x1c]
je 0x4182dd
cmp dword [esp + 0x34], edi
jne 0x4182dd
cmp dword [esp + 0x48], edi
je 0x4182dd
mov eax, 0x300
or word [esp + 0x78], ax
cmp dword [esp + 0x60], edi
jne 0x418355
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x10]
je 0x418355
or word [esp + 0x78], 0x10
jmp 0x418355
test byte [esp + 0x7a], 5
je 0x41830b
or dword [esp + 0x44], 1
mov dword [esp + 0x3c], 1
jmp 0x418355
test dword [esp + 0x7a], 0x300
mov eax, 1
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x60]
cmovne ecx, eax
test byte [esp + 0x7a], 0x10
mov dword [esp + 0x34], ecx
cmovne edi, eax
test byte [esp + 0x7a], 2
mov dword [esp + 0x60], edi
je 0x418355
test dword [esp + 0x78], 0x300
cmovne ecx, eax
test byte [esp + 0x78], 0x10
mov dword [esp + 0x34], ecx
cmovne edx, eax
mov dword [esp + 0x3c], edx
mov edi, 1
mov edx, dword [esp + 0x40]
test edx, edx
jne 0x41840e
test ebx, ebx
jne 0x4183aa
mov eax, dword [esi + 0x3c]
mov dword [esp + edi*8 + 0x74], eax
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x20]
je 0x418391
cmp dword [esp + 0x38], ebx
jne 0x418391
cmp dword [esp + 0x50], ebx
je 0x418391
mov eax, 0x300
or word [esp + edi*8 + 0x78], ax
cmp dword [esp + 0x64], 0
jne 0x41840d
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
je 0x41840d
or word [esp + edi*8 + 0x78], 0x10
jmp 0x41840d
movzx eax, word [esp + edi*8 + 0x7a]
test al, 5
je 0x4183c2
or dword [esp + 0x44], 2
mov dword [esp + 0x40], 1
jmp 0x41840d
mov ecx, dword [esp + 0x38]
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 + 0x38], ecx
test al, 2
je 0x41840d
movzx eax, word [esp + edi*8 + 0x78]
test eax, 0x300
cmovne ecx, dword [esp + 0x54]
test al, 0x10
mov eax, 1
mov dword [esp + 0x38], ecx
cmovne edx, eax
mov dword [esp + 0x40], edx
inc edi
test ebx, ebx
jne 0x418439
test edi, edi
je 0x41848e
imul eax, dword [esp + 0xb0], 0x3e8
push eax
push edi
lea eax, [esp + 0x7c]
push eax
call dword [0x44f204]
mov ebp, eax
test ebp, ebp
js 0x418454
cmp ebp, 1
jl 0x418480
inc ebx
cmp ebx, 2
jl 0x418290
inc dword [esp + 0x4c]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
jmp 0x417b0e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x418487
inc dword [esp + 0x4c]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
jmp 0x417b0e
mov ebp, 0x5d
jmp 0x4184d8
mov ebp, 0xa
jmp 0x4184d8
mov ebp, 0x5c
jmp 0x4184d8
mov ebp, 0x5b
jmp 0x4184d8
mov ebp, 0x5a
jmp 0x4184d8
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x20]
jne 0x417b2e
mov eax, dword [esi + 0x58]
or eax, dword [esi + 0x5c]
je 0x417b2e
mov ebp, 0x62
jmp 0x4184d8
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4184c3
lea ebp, [eax + 0x5e]
jmp 0x4184d8
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
jne 0x4184d3
xor ebp, ebp
or ecx, edx
je 0x4184d8
mov ebp, 0x5e
mov ecx, dword [esp + 0xa4]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420c8f
add esp, 0x98
ret