Function at 0x40a2f4
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0xc
call fcn.00446baf
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
jmp 0x40a35f
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
call fcn.0040ae80
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.00401c19
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a3c0
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a3d4
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40a655
push 0x80000301
push 0
push dword [ebp - 8]
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 0x40a437
push ebx
call fcn.00446bb5
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40a44a
mov eax, 0x479858
push eax
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a470
push ebx
call fcn.00446bb5
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040a232
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a48c
push ebx
call fcn.00446bb5
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x30]
push 1
push 0x1f0001
xor eax, eax
call dword [0x4baf68]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x40a4e1
push 0x15e
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a4f4
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a535
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x4baf6c]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40a530
push 0x1b4
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
jmp 0x40a64d
push 0x80000301
push 0
push dword [ebp - 8]
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 0x40a57a
push ebx
call fcn.00446bb5
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40a58d
mov eax, 0x479858
push eax
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a5b3
push ebx
call fcn.00446bb5
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040a232
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a5cf
push ebx
call fcn.00446bb5
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x30]
push 1
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x40a622
push 0x267
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a635
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
jmp 0x40a655
pop eax
pop ebx
pop ecx
jmp 0x40a3e4
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x40accd
push 0x80000301
push 0
push dword [ebp - 0x1c]
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 0x40a6a7
push ebx
call fcn.00446bb5
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40a6ba
mov eax, 0x479858
push eax
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a6e0
push ebx
call fcn.00446bb5
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040af4f
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a6fc
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x2c]
push 1
push 0xf001f
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40a732
push 0x385
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a745
push ebx
call fcn.00446bb5
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x40a8ab
cmp dword [ebp + 0x14], 2
jge 0x40a8a1
cmp dword [ebp + 0x14], 0
jne 0x40a803
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4829c8
push dword [ebp - 0x20]
push 0x4829cb
mov ecx, 3
call fcn.00401c19
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a7af
push ebx
call fcn.00446bb5
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4829e3
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40a7e0
mov eax, 0x479858
push eax
push 4
mov ebx, 0x300
call fcn.00447710
add esp, 0x34
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a803
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x4baf38]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40a836
push 0x498
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x4baf70]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40a864
push 0x4bd
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
call fcn.00407c9b
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x4baf74]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40a897
push 0x4ec
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x40a897
mov eax, 0
jmp 0x40ae5c
push 0x80000301
push 0
push dword [ebp - 0x1c]
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 0x40a8f0
push ebx
call fcn.00446bb5
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40a903
mov eax, 0x479858
push eax
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a929
push ebx
call fcn.00446bb5
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040af4f
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a945
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x2c]
push 0x64
push 0
push 4
push 0
push 0xffffffff
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40a98a
push 0x5dc
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a99a
push ebx
call fcn.00446bb5
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
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 0x40a9df
push ebx
call fcn.00446bb5
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40a9f2
mov eax, 0x479858
push eax
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40aa18
push ebx
call fcn.00446bb5
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040590c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40aa34
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x2c]
push 0
push 0x1f0003
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenEventA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40aa6a
push 0x679
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40aa7d
push ebx
call fcn.00446bb5
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x40abe3
cmp dword [ebp + 0x14], 2
jge 0x40abd9
cmp dword [ebp + 0x14], 0
jne 0x40ab3b
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4829c8
push dword [ebp - 0x20]
push 0x4829cb
mov ecx, 3
call fcn.00401c19
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40aae7
push ebx
call fcn.00446bb5
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4829e3
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40ab18
mov eax, 0x479858
push eax
push 4
mov ebx, 0x300
call fcn.00447710
add esp, 0x34
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ab3b
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x4baf38]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40ab6e
push 0x79f
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x4baf70]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40ab9c
push 0x7c4
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
call fcn.00407c9b
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x4baf74]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40abcf
push 0x7f3
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x40abcf
mov eax, 0
jmp 0x40ae5c
push 0x80000301
push 0
push dword [ebp - 0x1c]
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 0x40ac28
push ebx
call fcn.00446bb5
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40ac3b
mov eax, 0x479858
push eax
push 1
mov ebx, 0x198
call fcn.00448eb0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ac61
push ebx
call fcn.00446bb5
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040590c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40ac7d
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x30], esp
push dword [ebp - 0x2c]
push 0
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x40acb8
push 0x8c5
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40acc8
push ebx
call fcn.00446bb5
add esp, 4
jmp 0x40ae29
cmp dword [ebp + 0x14], 2
jge 0x40ae1f
cmp dword [ebp + 0x14], 0
jne 0x40ad81
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4829c8
push dword [ebp - 0x20]
push 0x4829cb
mov ecx, 3
call fcn.00401c19
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ad2d
push ebx
call fcn.00446bb5
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x4829e3
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40ad5e
mov eax, 0x479858
push eax
push 4
mov ebx, 0x300
call fcn.00447710
add esp, 0x34
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40ad81
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x4baf38]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40adb4
push 0x9e1
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x4baf70]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40ade2
push 0xa06
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
call fcn.00407c9b
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x4baf74]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40ae15
push 0xa35
push 0x4026979
push 6
call fcn.00446bbb
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x40ae15
mov eax, 0
jmp 0x40ae5c
mov eax, 1
jmp 0x40ae5c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40ae6d
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00446bb5
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14