Function at 0x40202c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0
push 1
mov ebx, 0x90
call fcn.004b9e10
add esp, 0x10
push 0x80000301
push 0
push 7
push 0x80000301
push 0
push 3
push 2
mov ebx, 0x94
call fcn.004b9e40
add esp, 0x1c
mov dword [ebp - 0x20], eax
push 1
push 1
push dword [ebp - 0x20]
call fcn.00402bc8
mov dword [ebp - 0x24], eax
mov eax, 0x4ca42d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402f34
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4020e1
push ebx
call fcn.004b91a0
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4020f4
mov eax, 0x4ca252
push eax
push 1
mov ebx, 0x168
call fcn.004b9f30
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40211a
push ebx
call fcn.004b91a0
add esp, 4
push dword [ebp - 0x30]
push dword [ebp - 0x24]
mov ecx, 2
call fcn.00401f52
add esp, 8
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402140
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402150
push ebx
call fcn.004b91a0
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402164
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x64
push 1
mov ebx, 0x67c
call fcn.004ba1d0
add esp, 0x10
push 0
mov ebx, 0x104
call fcn.004ba1e0
add esp, 4
mov dword [ebp - 0x20], eax
push 0
mov ebx, 0x108
call fcn.004ba270
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, 0x4ca439
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402f34
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4021d4
push ebx
call fcn.004b91a0
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4021e7
mov eax, 0x4ca252
push eax
push 1
mov ebx, 0x168
call fcn.004b9f30
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40220d
push ebx
call fcn.004b91a0
add esp, 4
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push 0x4ca445
push dword [ebp - 0x20]
mov ecx, 4
call fcn.00401f52
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40223b
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40224b
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40225b
push ebx
call fcn.004b91a0
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40226e
mov eax, 0x4ca20b
push eax
push 1
mov ebx, 0x244
call fcn.004ba300
add esp, 0x10
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402291
push ebx
call fcn.004b91a0
add esp, 4
mov dword [ebp - 0x20], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4022ba
push 0x1f2
push 0x401d7e6
push 6
call fcn.004b91a6
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4022d9
push eax
mov ebx, eax
call fcn.00401354
inc eax
push eax
call fcn.004b919a
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4022ea
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4ca447
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40231f
mov eax, 0x4ca20b
push eax
push 4
mov ebx, 0x148
call fcn.004ba310
add esp, 0x34
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x402344
jmp 0x402b84
push 0
mov ebx, 0x104
call fcn.004ba1e0
add esp, 4
mov dword [ebp - 0x20], eax
push 0
mov ebx, 0x108
call fcn.004ba270
add esp, 4
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 0x4ca445
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00401f52
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402399
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4023a9
push ebx
call fcn.004b91a0
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4023bc
mov eax, 0x4ca20b
push eax
push 1
mov ebx, 0x268
call fcn.004ba440
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4023e2
push ebx
call fcn.004b91a0
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4023f6
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
mov ebx, 0x90
call fcn.004b9e10
add esp, 0x10
push 0x80000301
push 0
push 0x14
push 0x80000301
push 0
push 0
push 2
mov ebx, 0x94
call fcn.004b9e40
add esp, 0x1c
push eax
call fcn.0040312d
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x402459
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x402470
mov eax, 0x4ca252
push eax
push 1
mov ebx, 0x194
call fcn.004ba4b0
add esp, 0x10
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x402499
mov eax, 0x4ca252
push eax
push 0x80000301
push 0
push dword [ebp - 0x20]
push 0x80000301
push 0
push 0x381
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4024c3
mov eax, 0x4ca252
push eax
push 4
mov ebx, 0x1b4
call fcn.004ba4c0
add esp, 0x34
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4024ed
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x14
push 0x80000301
push 0
push 0
push 2
mov ebx, 0x94
call fcn.004b9e40
add esp, 0x1c
push eax
call fcn.0040312d
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x402538
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40254f
mov eax, 0x4ca252
push eax
push 1
mov ebx, 0x194
call fcn.004ba4b0
add esp, 0x10
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x402578
mov eax, 0x4ca252
push eax
push 0x80000301
push 0
push dword [ebp - 0x20]
push 0x80000301
push 0
push 0x4f
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4025a2
mov eax, 0x4ca252
push eax
push 4
mov ebx, 0x1b4
call fcn.004ba4c0
add esp, 0x34
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4025cc
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x24e
push 0x80000301
push 0
push 0x24
push 2
mov ebx, 0x94
call fcn.004b9e40
add esp, 0x1c
push eax
call fcn.0040312d
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 0x4ca44b
push dword [ebp - 0xc]
mov ecx, 3
call fcn.00401fae
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40262e
push ebx
call fcn.004b91a0
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402642
push ebx
call fcn.004b91a0
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.WS2_32.dll_getpeername
push 0
lea eax, [ebp - 0xc]
push eax
push 1
mov ebx, 0xc
mov eax, 0x4bff70
call fcn.004b9cc0
add esp, 0x10
mov dword [ebp - 0x14], eax
add dword [ebp - 0x14], 0x400
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x402685
mov eax, 0x4ca252
push eax
push 1
mov ebx, 0x194
call fcn.004ba4b0
add esp, 0x10
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x28]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fsub qword [0x4ca456]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.00402005
push eax
lea eax, [ebp - 0x18]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x4027d7
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00402005
push 0x80000301
push 0
push eax
push 1
mov ebx, 0xa5c
call fcn.004ba6c0
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xcccccccc
jne 0x4027cc
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fadd qword [0x4ca45e]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00402005
push 0x80000301
push 0
push eax
push 1
mov ebx, 0xa5c
call fcn.004ba6c0
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xcccccccc
jne 0x4027cc
inc dword [ebp - 0x1c]
fild dword [ebp - 0x14]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fadd qword [0x4ca466]
fstp qword [ebp - 0x34]
push 0x80000301
push 0
push 0x3b9aca04
push 0x80000301
push 0
push 0
push 2
mov ebx, 0x94
call fcn.004b9e40
add esp, 0x1c
push eax
fld qword [ebp - 0x34]
call fcn.00402005
push eax
call fcn.00403267
cmp dword [ebp - 0x1c], 0x32
jle 0x4027c8
jmp 0x4027d7
add dword [ebp - 0x18], 4
pop ebx
pop ecx
pop edx
add ecx, 4
jmp 0x4026c1
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x4027e9
jmp 0x402b84
push 0
mov ebx, 0x104
call fcn.004ba1e0
add esp, 4
mov dword [ebp - 0x20], eax
push 0
mov ebx, 0x108
call fcn.004ba270
add esp, 4
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 0x4ca445
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00401f52
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40283e
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40284e
push ebx
call fcn.004b91a0
add esp, 4
push 0
mov ebx, 0x104
call fcn.004ba1e0
add esp, 4
mov dword [ebp - 0x2c], eax
mov eax, 0x4ca439
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402f34
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402887
push ebx
call fcn.004b91a0
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x40289a
mov eax, 0x4ca252
push eax
push 1
mov ebx, 0x168
call fcn.004b9f30
add esp, 0x10
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4028c0
push ebx
call fcn.004b91a0
add esp, 4
push dword [ebp - 0x38]
push dword [ebp - 4]
push 0x4ca445
push dword [ebp - 0x2c]
mov ecx, 4
call fcn.00401f52
add esp, 0x10
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4028ee
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4028fe
push ebx
call fcn.004b91a0
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x402911
mov eax, 0x4ca20b
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x402925
mov eax, 0x4ca20b
push eax
push 2
mov ebx, 0x248
call fcn.004ba6d0
add esp, 0x1c
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x402948
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x402958
push ebx
call fcn.004b91a0
add esp, 4
push 0
mov ebx, 0x104
call fcn.004ba1e0
add esp, 4
mov dword [ebp - 0x20], eax
push dword [ebp - 4]
push 0x4ca445
push dword [ebp - 0x20]
mov ecx, 3
call fcn.00401f52
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402998
push ebx
call fcn.004b91a0
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4029ab
mov eax, 0x4ca252
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4029bf
mov eax, 0x4ca20b
push eax
push 2
mov ebx, 0x26c
call fcn.004ba6f0
add esp, 0x1c
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4029e2
push ebx
call fcn.004b91a0
add esp, 4
push 0
mov ebx, 0x104
call fcn.004ba1e0
add esp, 4
mov dword [ebp - 0x20], eax
push 0x4ca447
push dword [ebp - 4]
push 0x4ca445
push dword [ebp - 0x20]
mov ecx, 4
call fcn.00401f52
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402a27
push ebx
call fcn.004b91a0
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_bind
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x402a4c
mov eax, 0x4ca20b
push eax
push 3
mov ebx, 0x2c0
call fcn.004ba790
add esp, 0x28
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402a6f
push ebx
call fcn.004b91a0
add esp, 4
push 0
mov ebx, 0x104
call fcn.004ba1e0
add esp, 4
mov dword [ebp - 0x20], eax
push 0
mov ebx, 0x108
call fcn.004ba270
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, 0x4ca439
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402f34
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x402abd
push ebx
call fcn.004b91a0
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x402ad0
mov eax, 0x4ca252
push eax
push 1
mov ebx, 0x168
call fcn.004b9f30
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402af6
push ebx
call fcn.004b91a0
add esp, 4
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push 0x4ca445
push dword [ebp - 0x20]
mov ecx, 4
call fcn.00401f52
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402b24
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402b34
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402b44
push ebx
call fcn.004b91a0
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x402b57
mov eax, 0x4ca20b
push eax
push 1
mov ebx, 0x244
call fcn.004ba300
add esp, 0x10
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x402b7a
push ebx
call fcn.004b91a0
add esp, 4
push 0
call fcn.004b9182
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402b94
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402ba4
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x402bb4
push ebx
call fcn.004b91a0
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x402bc4
push ebx
call fcn.004b91a0
add esp, 4
mov esp, ebp
pop ebp
ret