Function at 0x412078
Capabilities:
Packed with generic packer

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 0x4120bd
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
fninit
mov dword [ebp - 0x1c], esp
push 0
xor eax, eax
call dword [0x4baf64]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41211c
push 0x7d
push 0x40269f7
push 6
call fcn.00446bbb
add esp, 0xc
cmp dword [0x4bad28], 0
je 0x41213d
cmp dword [0x4bad2c], 0
jne 0x41213d
mov eax, 1
jmp 0x412142
mov eax, 0
test eax, eax
je 0x412190
push 0x80000301
push 0
push dword [0x4bad28]
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040afe6
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x412188
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x412918
push 0x80000301
push 0
push dword [0x4bad30]
push 0x80000301
push 0
push 1
push 2
mov ebx, 0xc4
call fcn.00449d90
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x4121d9
cmp dword [0x4bad30], 0xffffffff
je 0x4121d9
xor eax, eax
jmp 0x4121de
mov eax, 1
test eax, eax
je 0x41222c
call fcn.0040ae80
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x412214
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412228
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4bad30]
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xc4
call fcn.00449d90
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x412275
cmp dword [0x4bad30], 0xffffffff
je 0x412275
xor eax, eax
jmp 0x41227a
mov eax, 1
test eax, eax
je 0x4122c8
call fcn.0041296e
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4122b0
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4122c4
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4bad30]
push 0x80000301
push 0
push 4
push 2
mov ebx, 0xc4
call fcn.00449d90
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 4
je 0x412311
cmp dword [0x4bad30], 0xffffffff
je 0x412311
xor eax, eax
jmp 0x412316
mov eax, 1
test eax, eax
je 0x412364
call fcn.00412bf1
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41234c
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412360
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4bad30]
push 0x80000301
push 0
push 8
push 2
mov ebx, 0xc4
call fcn.00449d90
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
je 0x4123ad
cmp dword [0x4bad30], 0xffffffff
je 0x4123ad
xor eax, eax
jmp 0x4123b2
mov eax, 1
test eax, eax
je 0x412400
call fcn.00412cc3
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4123e8
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4123fc
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4bad30]
push 0x80000301
push 0
push 0x10
push 2
mov ebx, 0xc4
call fcn.00449d90
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10
je 0x412449
cmp dword [0x4bad30], 0xffffffff
je 0x412449
xor eax, eax
jmp 0x41244e
mov eax, 1
test eax, eax
je 0x4124b6
call fcn.00412fdf
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41249e
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4124b2
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4bad30]
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc4
call fcn.00449d90
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
je 0x4124ff
cmp dword [0x4bad30], 0xffffffff
je 0x4124ff
xor eax, eax
jmp 0x412504
mov eax, 1
test eax, eax
je 0x412552
call fcn.00413056
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41253a
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41254e
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4bad30]
push 0x80000301
push 0
push 0x40
push 2
mov ebx, 0xc4
call fcn.00449d90
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x40
je 0x41259b
cmp dword [0x4bad30], 0xffffffff
je 0x41259b
xor eax, eax
jmp 0x4125a0
mov eax, 1
test eax, eax
je 0x4125ee
call fcn.0041383c
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4125d6
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4125ea
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [0x4bad30]
push 0x80000301
push 0
push 0x80
push 2
mov ebx, 0xc4
call fcn.00449d90
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x80
je 0x41263a
cmp dword [0x4bad30], 0xffffffff
je 0x41263a
xor eax, eax
jmp 0x41263f
mov eax, 1
test eax, eax
je 0x412691
push 1
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
call fcn.00414a47
test eax, eax
je 0x412691
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 3
call fcn.00401c19
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41268d
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [0x4bad34]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4126be
push ebx
call fcn.00446bb5
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 0x4126d5
mov eax, 0x479858
push eax
push 1
mov ebx, 0x130
call fcn.00449590
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x412764
mov dword [ebp - 0x1c], esp
push 0x1388
push 0
push 0x10
push 0x482ba9
push 0x482bb4
push 0
xor eax, eax
call dword [0x4bafa8]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x41273c
push 0x916
push 0x40269f7
push 6
call fcn.00446bbb
add esp, 0xc
push 0
call fcn.00446b9d
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x412764
push 0
mov ebx, 0x350
call fcn.00449db0
add esp, 4
jmp 0x412746
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x412777
mov eax, 0x479858
push eax
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4127a1
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040af4f
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4127c5
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00416999
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4127f5
call fcn.00407c9b
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
call fcn.00416a94
lea eax, [ebp - 0x18]
push eax
call fcn.00409f76
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 0x412826
mov eax, 0x4798e6
push eax
push 3
mov ebx, 0x19c
call fcn.004490b0
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 0x412852
push ebx
call fcn.00446bb5
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x80000101
jne 0x41286a
and eax, 0xff
jmp 0x4128bf
cmp ecx, 0x80000201
jne 0x412875
cwde
jmp 0x4128bf
cmp ecx, 0x80000301
je 0x4128bf
cmp ecx, 0x80000401
je 0x4128bf
mov dword [ebp - 0x30], eax
cmp ecx, 0x80000501
je 0x4128af
cmp ecx, 0x80000601
je 0x4128b4
push 0xb1e
push 0x40269f7
push 2
call fcn.00446bbb
add esp, 0xc
fld dword [ebp - 0x30]
jmp 0x4128ba
mov dword [ebp - 0x2c], edx
fld qword [ebp - 0x30]
call fcn.00401b87
mov dword [0x4bad28], eax
mov dword [0x4bad2c], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4128ea
push eax
mov ebx, eax
call fcn.00401bae
inc eax
push eax
call fcn.00446baf
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x412918
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412929
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x412939
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x412949
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x412959
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x412969
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret