Function at 0x40af33
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
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
jmp 0x40af78
cmp dword [0x63eeab], 0
je 0x40af99
cmp dword [0x63eeaf], 0
jne 0x40af99
mov eax, 1
jmp 0x40af9e
mov eax, 0
test eax, eax
je 0x40afec
push 0x80000301
push 0
push dword [0x63eeab]
push 1
mov ebx, 0x198
call fcn.0042b330
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404232
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40afe4
push ebx
call fcn.00429d3f
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x40b778
push 0x80000301
push 0
push dword [0x63eeb3]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.0042b620
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x40b035
cmp dword [0x63eeb3], 0xffffffff
je 0x40b035
xor eax, eax
jmp 0x40b03a
mov eax, 1
test eax, eax
je 0x40b088
call fcn.004036ee
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402555
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b070
push ebx
call fcn.00429d3f
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b084
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x63eeb3]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.0042b620
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x40b0d1
cmp dword [0x63eeb3], 0xffffffff
je 0x40b0d1
xor eax, eax
jmp 0x40b0d6
mov eax, 1
test eax, eax
je 0x40b124
call fcn.0040b7ce
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402555
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b10c
push ebx
call fcn.00429d3f
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b120
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x63eeb3]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.0042b620
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x40b16d
cmp dword [0x63eeb3], 0xffffffff
je 0x40b16d
xor eax, eax
jmp 0x40b172
mov eax, 1
test eax, eax
je 0x40b1c0
call fcn.0040ba48
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402555
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b1a8
push ebx
call fcn.00429d3f
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b1bc
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x63eeb3]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.0042b620
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x40b209
cmp dword [0x63eeb3], 0xffffffff
je 0x40b209
xor eax, eax
jmp 0x40b20e
mov eax, 1
test eax, eax
je 0x40b25c
call fcn.00403a4b
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402555
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b244
push ebx
call fcn.00429d3f
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b258
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x63eeb3]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.0042b620
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x40b2a5
cmp dword [0x63eeb3], 0xffffffff
je 0x40b2a5
xor eax, eax
jmp 0x40b2aa
mov eax, 1
test eax, eax
je 0x40b312
call fcn.0040bb3b
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0042a9d0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402555
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b2fa
push ebx
call fcn.00429d3f
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b30e
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x63eeb3]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.0042b620
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x40b35b
cmp dword [0x63eeb3], 0xffffffff
je 0x40b35b
xor eax, eax
jmp 0x40b360
mov eax, 1
test eax, eax
je 0x40b3ae
call fcn.0040bbb2
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402555
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b396
push ebx
call fcn.00429d3f
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b3aa
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x63eeb3]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.0042b620
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x40b3f7
cmp dword [0x63eeb3], 0xffffffff
je 0x40b3f7
xor eax, eax
jmp 0x40b3fc
mov eax, 1
test eax, eax
je 0x40b44a
call fcn.0040c2ec
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402555
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b432
push ebx
call fcn.00429d3f
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b446
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x63eeb3]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.0042b620
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x40b496
cmp dword [0x63eeb3], 0xffffffff
je 0x40b496
xor eax, eax
jmp 0x40b49b
mov eax, 1
test eax, eax
je 0x40b4ed
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.0040d4f6
test eax, eax
je 0x40b4ed
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.00402555
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b4e9
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x63eeb7]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402555
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b51a
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b531
mov eax, 0x52c8fc
push eax
push 1
mov ebx, 0x130
call fcn.0042b6d0
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40b5c0
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x52cfec
push 0x52cff7
push 0
xor eax, eax
call dword [0x63efb7]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b598
push 0x87a
push 0x4088073
push 6
call fcn.00429d45
add esp, 0xc
push 0
call fcn.00429d21
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x40b5c0
push 0
mov ebx, 0x350
call fcn.0042c5a0
add esp, 4
jmp 0x40b5a2
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40b5d3
mov eax, 0x52c8fc
push eax
push 1
mov ebx, 0x198
call fcn.0042b330
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b5fd
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404174
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b621
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040f322
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40b66e
mov dword [ebp - 0x1c], esp
push 0
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40b66e
push 0xa3f
push 0x4088073
push 6
call fcn.00429d45
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.0040f41d
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push htons
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40b69f
mov eax, 0x52c93d
push eax
push 3
mov ebx, 0x19c
call fcn.0042bb10
add esp, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40b6cb
push ebx
call fcn.00429d3f
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x40b6e3
and eax, 0xff
jmp 0x40b738
cmp ecx, 0x80000201
jne 0x40b6ee
cwde
jmp 0x40b738
cmp ecx, 0x80000301
je 0x40b738
cmp ecx, 0x80000401
je 0x40b738
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x40b728
cmp ecx, 0x80000601
je 0x40b72d
push 0xa91
push 0x4088073
push 2
call fcn.00429d45
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x40b733
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.0040420b
mov dword [0x63eeab], eax
mov dword [0x63eeaf], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b763
push eax
mov ebx, eax
call fcn.004024ea
inc eax
push eax
call fcn.00429d33
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b778
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b789
push ebx
call fcn.00429d3f
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b799
push ebx
call fcn.00429d3f
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b7a9
push ebx
call fcn.00429d3f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b7b9
push ebx
call fcn.00429d3f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40b7c9
push ebx
call fcn.00429d3f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret