Function at 0x41edd0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43bfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push str._CS_16_1_2
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginUltra]
cmp dword [0x445900], 0
jne 0x41ee39
movzx eax, word [0x4457c6]
test eax, eax
je 0x41ee39
movzx ecx, word [0x4457c6]
push ecx
push 0x4457e0
call fcn.00421e10
add esp, 8
movzx edx, al
test edx, edx
jne 0x41ee39
mov dword [0x445900], 0
mov dword [0x445c64], 0xffffffff
xor al, al
jmp 0x41f18a
push 0x10
push 0x4458f0
mov eax, dword [0x445900]
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [0x445c64], eax
cmp dword [0x445c64], 0xffffffff
jne 0x41ef09
cmp dword [0x445900], 0
jne 0x41ef09
movzx ecx, word [0x4457c6]
test ecx, ecx
je 0x41ef09
movzx edx, word [0x4457c6]
push edx
push 0x4457e0
call fcn.00421e10
add esp, 8
movzx eax, al
test eax, eax
jne 0x41eec0
mov ecx, dword [0x445900]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x445900], 0
mov dword [0x445c64], 0xffffffff
xor al, al
jmp 0x41f18a
push 0x10
push 0x4458f0
mov edx, dword [0x445900]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [0x445c64], eax
cmp dword [0x445c64], 0xffffffff
jne 0x41ef09
mov eax, dword [0x445900]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x445900], 0
mov dword [0x445c64], 0xffffffff
xor al, al
jmp 0x41f18a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x110], edx
cmp dword [ebp + 0xc], 1
je 0x41ef24
cmp dword [ebp + 0xc], 3
jne 0x41eff7
mov eax, dword [ebp - 0x110]
mov ecx, 0xc1a6f29
mov dword [eax], 0xed6b6c38
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
sub ecx, 0x18
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov dword [ebp - 0x114], 0
jmp 0x41ef70
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
xor ecx, ecx
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [eax + 0x14]
jg 0x41efd4
jl 0x41efb4
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x120]
cmp eax, dword [edx + 0x10]
jae 0x41efd4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x110]
add eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x114]
mov dl, byte [edx + ecx]
mov byte [eax + 0x20], dl
jmp 0x41ef61
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x10]
add ecx, 0x20
mov edx, dword [eax + 0x14]
adc edx, 0
mov eax, dword [ebp - 0x110]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
jmp 0x41f0f4
mov ecx, dword [ebp - 0x110]
mov edx, 0x6addaf8
mov dword [ecx], 0xcef1b7c1
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
sub eax, dword [ecx]
cdq
mov ecx, dword [ebp - 0x110]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + 0x10]
sub eax, 8
mov ecx, dword [edx + 0x14]
sbb ecx, 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [ebp - 0x10c], 0
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [0x445b44]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0x445b60
push 0x445a40
call fcn.004300b0
add esp, 0x10
mov eax, dword [0x445b44]
push eax
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x110]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0x110]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call fcn.0042fd50
add esp, 0x18
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x10c]
add eax, 0x20
xor ecx, ecx
mov edx, dword [ebp - 0x110]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 0x110]
xor ecx, ecx
xor edx, edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
push 0
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [0x445900]
push eax
call fcn.004227d0
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00432902
add esp, 4
cmp dword [ebp + 0xc], 3
je 0x41f12f
cmp dword [ebp + 0xc], 4
jne 0x41f182
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ecx + 0x43c038]
cmp edx, 5
jne 0x41f182
mov eax, 1
imul ecx, eax, 0
mov dl, byte [ecx + 0x43c038]
add dl, 1
mov eax, 1
imul ecx, eax, 0
mov byte [ecx + 0x43c038], dl
mov edx, 1
shl edx, 0
movsx eax, byte [edx + 0x43c038]
shl eax, 4
mov ecx, 1
shl ecx, 0
mov byte [ecx + 0x43c038], al
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d5bd
mov esp, ebp
pop ebp
ret