Function at 0x4208f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x43bfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push str._CS_16_1
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginUltra]
cmp dword [0x445900], 0
jne 0x420959
movzx eax, word [0x4457c6]
test eax, eax
je 0x420959
movzx ecx, word [0x4457c6]
push ecx
push 0x4457e0
call fcn.00421e10
add esp, 8
movzx edx, al
test edx, edx
jne 0x420959
mov dword [0x445900], 0
mov dword [0x445c64], 0xffffffff
xor al, al
jmp 0x4210f6
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 0x420a29
cmp dword [0x445900], 0
jne 0x420a29
movzx ecx, word [0x4457c6]
test ecx, ecx
je 0x420a29
movzx edx, word [0x4457c6]
push edx
push 0x4457e0
call fcn.00421e10
add esp, 8
movzx eax, al
test eax, eax
jne 0x4209e0
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 0x4210f6
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 0x420a29
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 0x4210f6
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.0041f4e0
add esp, 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x20
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x22c], edx
mov eax, dword [ebp - 0x22c]
add eax, 1
mov dword [ebp - 0x288], eax
mov ecx, dword [ebp - 0x22c]
mov dl, byte [ecx]
mov byte [ebp - 0x223], dl
add dword [ebp - 0x22c], 1
cmp byte [ebp - 0x223], 0
jne 0x420a83
mov eax, dword [ebp - 0x22c]
sub eax, dword [ebp - 0x288]
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x214]
add ecx, dword [ebp - 0x2bc]
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x230], 0x445a40
mov edx, dword [ebp - 0x230]
add edx, 1
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x230]
mov cl, byte [eax]
mov byte [ebp - 0x21d], cl
add dword [ebp - 0x230], 1
cmp byte [ebp - 0x21d], 0
jne 0x420ade
mov edx, dword [ebp - 0x230]
sub edx, dword [ebp - 0x264]
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x214]
add eax, dword [ebp - 0x268]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x234], ecx
mov edx, dword [ebp - 0x234]
add edx, 1
mov dword [ebp - 0x26c], edx
mov eax, dword [ebp - 0x234]
mov cl, byte [eax]
mov byte [ebp - 0x21e], cl
add dword [ebp - 0x234], 1
cmp byte [ebp - 0x21e], 0
jne 0x420b3b
mov edx, dword [ebp - 0x234]
sub edx, dword [ebp - 0x26c]
mov dword [ebp - 0x270], edx
mov eax, dword [ebp - 0x214]
add eax, dword [ebp - 0x270]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x238], 0x445920
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x274], ecx
mov edx, dword [ebp - 0x238]
mov al, byte [edx]
mov byte [ebp - 0x21f], al
add dword [ebp - 0x238], 1
cmp byte [ebp - 0x21f], 0
jne 0x420b96
mov ecx, dword [ebp - 0x238]
sub ecx, dword [ebp - 0x274]
mov dword [ebp - 0x278], ecx
mov edx, dword [ebp - 0x214]
add edx, dword [ebp - 0x278]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 0x214]
xor edx, edx
mov ecx, 0x10
div ecx
test edx, edx
je 0x420c0d
mov eax, dword [ebp - 0x214]
xor edx, edx
mov ecx, 0x10
div ecx
mov eax, 0x10
sub eax, edx
add eax, dword [ebp - 0x214]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x12c
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x214]
push eax
push 0
mov ecx, dword [ebp - 0x25c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
mov ecx, 0x6addaf8
mov dword [eax], 0xcef1b7c1
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x21c]
xor eax, eax
xor ecx, ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [ebp - 0x21c]
add edx, 0x30
mov dword [ebp - 0x260], edx
mov eax, dword [ebp - 0x260]
add eax, 8
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x23c], ecx
mov edx, dword [ebp - 0x23c]
add edx, 1
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x23c]
mov cl, byte [eax]
mov byte [ebp - 0x220], cl
add dword [ebp - 0x23c], 1
cmp byte [ebp - 0x220], 0
jne 0x420cb2
mov edx, dword [ebp - 0x23c]
sub edx, dword [ebp - 0x27c]
mov dword [ebp - 0x280], edx
mov eax, dword [ebp - 0x280]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x218]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x240]
add ecx, 1
mov dword [ebp - 0x284], ecx
mov edx, dword [ebp - 0x240]
mov al, byte [edx]
mov byte [ebp - 0x221], al
add dword [ebp - 0x240], 1
cmp byte [ebp - 0x221], 0
jne 0x420d14
mov ecx, dword [ebp - 0x240]
sub ecx, dword [ebp - 0x284]
mov dword [ebp - 0x2a4], ecx
mov edx, dword [ebp - 0x2a4]
mov eax, dword [ebp - 0x218]
lea ecx, [eax + edx + 2]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x244], 0x445a40
mov edx, dword [ebp - 0x244]
add edx, 1
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x244]
mov cl, byte [eax]
mov byte [ebp - 0x222], cl
add dword [ebp - 0x244], 1
cmp byte [ebp - 0x222], 0
jne 0x420d73
mov edx, dword [ebp - 0x244]
sub edx, dword [ebp - 0x28c]
mov dword [ebp - 0x290], edx
mov eax, dword [ebp - 0x290]
push eax
push 0x445a40
mov ecx, dword [ebp - 0x218]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x248], 0x445a40
mov edx, dword [ebp - 0x248]
add edx, 1
mov dword [ebp - 0x294], edx
mov eax, dword [ebp - 0x248]
mov cl, byte [eax]
mov byte [ebp - 0x228], cl
add dword [ebp - 0x248], 1
cmp byte [ebp - 0x228], 0
jne 0x420dd7
mov edx, dword [ebp - 0x248]
sub edx, dword [ebp - 0x294]
mov dword [ebp - 0x298], edx
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x218]
lea edx, [ecx + eax + 2]
mov dword [ebp - 0x218], edx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
add ecx, 1
mov dword [ebp - 0x29c], ecx
mov edx, dword [ebp - 0x24c]
mov al, byte [edx]
mov byte [ebp - 0x224], al
add dword [ebp - 0x24c], 1
cmp byte [ebp - 0x224], 0
jne 0x420e38
mov ecx, dword [ebp - 0x24c]
sub ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], ecx
mov edx, dword [ebp - 0x2a0]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x108]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x250]
add eax, 1
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x250]
mov dl, byte [ecx]
mov byte [ebp - 0x225], dl
add dword [ebp - 0x250], 1
cmp byte [ebp - 0x225], 0
jne 0x420ea0
mov eax, dword [ebp - 0x250]
sub eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ebp - 0x218]
lea eax, [edx + ecx + 2]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x254], 0x445920
mov ecx, dword [ebp - 0x254]
add ecx, 1
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x254]
mov al, byte [edx]
mov byte [ebp - 0x226], al
add dword [ebp - 0x254], 1
cmp byte [ebp - 0x226], 0
jne 0x420eff
mov ecx, dword [ebp - 0x254]
sub ecx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], ecx
mov edx, dword [ebp - 0x2b0]
push edx
push 0x445920
mov eax, dword [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x258], 0x445920
mov ecx, dword [ebp - 0x258]
add ecx, 1
mov dword [ebp - 0x2b4], ecx
mov edx, dword [ebp - 0x258]
mov al, byte [edx]
mov byte [ebp - 0x227], al
add dword [ebp - 0x258], 1
cmp byte [ebp - 0x227], 0
jne 0x420f63
mov ecx, dword [ebp - 0x258]
sub ecx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], ecx
mov edx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x218]
lea ecx, [eax + edx + 2]
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x218]
lea ecx, [eax + edx + 2]
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp - 0x218]
sub eax, dword [ebp - 0x260]
cdq
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x10]
sub eax, 8
mov ecx, dword [edx + 0x14]
sbb ecx, 0
mov edx, dword [ebp - 0x260]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [ebp - 0x210], 0
push 0x104
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [0x445b44]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x445b60
push 0x445a40
call fcn.004300b0
add esp, 0x10
mov eax, dword [0x445b44]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x260]
push eax
call fcn.0042fd50
add esp, 0x18
push 0x104
push 0
lea ecx, [ebp - 0x20c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x210]
add edx, 0x20
xor eax, eax
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x21c]
xor eax, eax
xor ecx, ecx
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
push 0
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
mov edx, dword [0x445900]
push edx
call fcn.004227d0
add esp, 0x10
mov eax, dword [ebp - 0x25c]
push eax
call fcn.00432902
add esp, 4
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