Function at 0x10012ba0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
jmp 0x10012bc2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pushal
mov eax, 1
mov eax, 2
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 4
mov eax, 2
mov eax, 5
mov eax, 6
popal
push edx
mov edx, 1
mov edx, 2
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 4
mov edx, 2
mov edx, 5
mov edx, 5
pop edx
push 0x100a921d
push dword [0x100af2f9]
call fcn.100013e6
add esp, 8
cmp eax, 0
je 0x10012c6b
mov eax, dword [0x100af2f9]
test eax, eax
je 0x10012c66
push eax
mov ebx, eax
call fcn.1000148b
inc eax
push eax
call fcn.10098511
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10012ea1
call fcn.1000a8e7
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10012c86
mov eax, 0x100a921d
push eax
push 1
mov ebx, 0x168
call fcn.10099140
add esp, 0x10
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10012cac
push ebx
call fcn.10098517
add esp, 4
call fcn.1000a664
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
xor eax, eax
call dword [0x100af5c9]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x10012cdd
push 0x13f
push 0x4026bda
push 6
call fcn.1009851d
add esp, 0xc
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.10099140
add esp, 0x10
mov dword [ebp - 0x1c], eax
call fcn.1000a9b9
mov dword [ebp - 0x20], eax
call fcn.10012eb7
mov dword [ebp - 0x24], eax
call fcn.1000acd5
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.10099140
add esp, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
mov ecx, 6
call fcn.100014f6
add esp, 0x18
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10012d5e
push ebx
call fcn.10098517
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10012d6e
push ebx
call fcn.10098517
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x10012d7e
push ebx
call fcn.10098517
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x10012d8e
push ebx
call fcn.10098517
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x10012d9e
push ebx
call fcn.10098517
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x10012dae
push ebx
call fcn.10098517
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x10012dc1
mov eax, 0x100a921d
push eax
push 1
mov ebx, 0x198
call fcn.10099f10
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x10012de7
push ebx
call fcn.10098517
add esp, 4
lea eax, [ebp - 0x34]
push eax
call fcn.10009a7d
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x10012e03
push ebx
call fcn.10098517
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10012e17
push ebx
call fcn.10098517
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10012e37
push eax
mov ebx, eax
call fcn.1000148b
inc eax
push eax
call fcn.10098511
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x100af2f9]
test ebx, ebx
je 0x10012e4b
push ebx
call fcn.10098517
add esp, 4
pop eax
mov dword [0x100af2f9], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10012e6d
push eax
mov ebx, eax
call fcn.1000148b
inc eax
push eax
call fcn.10098511
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10012ea1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10012eb2
push ebx
call fcn.10098517
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret