Function at 0x4239af
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.004241ce
cmp dword [ebp + 0x24], 0
jne 0x423a40
mov eax, 0x4c0dba
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004254cb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4239eb
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4239fe
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x423a24
push ebx
call fcn.004aada4
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x423a3a
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov ebx, dword [ebp + 0x20]
mov dword [ebx], eax
mov eax, 0x4c0dcc
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004254cb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x423a64
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x423a77
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x423a9d
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp + 0x20]
push dword [ebx]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x423ac5
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x423ad8
mov eax, 0x4bd214
push eax
push 1
mov ebx, 0x24c
call fcn.004ae720
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423afe
push ebx
call fcn.004aada4
add esp, 4
cmp dword [ebp - 0x14], 0
jne 0x423cc2
mov eax, 0x4c0de5
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004254cb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x423b2c
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x423b3f
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x423b65
push ebx
call fcn.004aada4
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x423b7b
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov ebx, dword [ebp + 0x20]
mov dword [ebx], eax
mov eax, 0x4c0dcc
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004254cb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x423ba5
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x423bb8
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x423bde
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp + 0x20]
push dword [ebx]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x423c06
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x423c19
mov eax, 0x4bd214
push eax
push 1
mov ebx, 0x24c
call fcn.004ae720
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423c3f
push ebx
call fcn.004aada4
add esp, 4
cmp dword [ebp - 0x14], 0
jne 0x423cc2
mov eax, 0x4c0df7
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004254cb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x423c6d
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x423c80
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x423ca6
push ebx
call fcn.004aada4
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0x20]
mov ebx, dword [ebx]
test ebx, ebx
je 0x423cbc
push ebx
call fcn.004aada4
add esp, 4
pop eax
mov ebx, dword [ebp + 0x20]
mov dword [ebx], eax
mov eax, 0x4c0e09
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004254cb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x423ce6
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x423cf9
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x423d1f
push ebx
call fcn.004aada4
add esp, 4
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.004257f2
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x423d4a
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x423d5a
push ebx
call fcn.004aada4
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [0x522ed9], eax
cmp dword [0x522ed9], 0
jg 0x423e22
mov eax, 0x4c0e22
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004254cb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x423d93
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x423da6
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x423dcc
push ebx
call fcn.004aada4
add esp, 4
mov ebx, 6
call fcn.00402c9b
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x423df5
mov eax, 0x4bd214
push eax
push 4
mov ebx, 0x300
call fcn.004ac380
add esp, 0x34
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x423e18
push ebx
call fcn.004aada4
add esp, 4
push 0
call fcn.004aad86
add esp, 4
push 1
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push dword [0x522ed9]
call fcn.00425e8b
mov dword [ebp - 4], esp
push 0xa
push dword [0x522ed9]
xor eax, eax
call dword [0x523115]
nop
nop
cmp dword [ebp - 4], esp
je 0x423e75
push 0x4a2
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], esp
push dword [0x522ed9]
xor eax, eax
call dword [0x523119]
nop
nop
cmp dword [ebp - 4], esp
je 0x423ea4
push 0x4c5
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], esp
push accept
push 0xffffffec
push dword [0x522ed9]
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
nop
nop
cmp dword [ebp - 4], esp
je 0x423edd
push 0x4df
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], esp
push 0x9c000000
push 0xfffffff0
push dword [0x522ed9]
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
nop
nop
cmp dword [ebp - 4], esp
je 0x423f16
push 0x50b
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], esp
push 0x802e0
push 0xffffffec
push dword [0x522ed9]
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
nop
nop
cmp dword [ebp - 4], esp
je 0x423f4f
push 0x537
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], esp
push 0xffffffec
push dword [0x522ed9]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
nop
nop
cmp dword [ebp - 4], esp
je 0x423f83
push 0x5b2
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0xc8
call fcn.004ac280
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x80000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc8
call fcn.004ac280
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
push 0xffffffec
push dword [0x522ed9]
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x424013
push 0x5b2
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], esp
push 2
push 0xd2
push 0
push dword [0x522ed9]
xor eax, eax
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
nop
nop
cmp dword [ebp - 4], esp
je 0x424051
push 0x5ea
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 4], esp
mov eax, 0x4c0e3a
test eax, eax
je 0x424060
add eax, 8
push eax
push dword [0x522ed9]
xor eax, eax
call dword [0x52311d]
nop
nop
cmp dword [ebp - 4], esp
je 0x42408d
push 0x62e
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov eax, 0x4c0dcc
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004254cb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4240b1
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4240c4
mov eax, 0x4bd20c
push eax
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4240ea
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp + 0x20]
push dword [ebx]
push dword [ebp - 0xc]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x424112
push ebx
call fcn.004aada4
add esp, 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
push dword [0x522ed9]
call fcn.00425ff6
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x424134
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_getsockname
push 0
push 0x426354
push 1
mov ebx, 0x9dc
call fcn.004ac9f0
add esp, 0x10
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_getsockname
push 0
push dword [ebp + 0x18]
push 1
mov ebx, 0x9dc
call fcn.004ac9f0
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 8]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4241be
push 0x724
push 0x414dd1a
push 6
call fcn.004aadaa
add esp, 0xc
mov eax, dword [0x522ed9]
jmp 0x4241c8
mov esp, ebp
pop ebp
ret 0x28