Function at 0x4186e5
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.004b0a75
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 0x418750
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
fninit
call fcn.004193cb
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.00401f24
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4187bd
push ebx
call fcn.004b0a7b
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4187d1
push ebx
call fcn.004b0a7b
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 0x418a52
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401f24
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418834
push ebx
call fcn.004b0a7b
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x418847
mov eax, 0x4c320b
push eax
push 1
mov ebx, 0x198
call fcn.004b2780
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41886d
push ebx
call fcn.004b0a7b
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.004049fa
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x418889
push ebx
call fcn.004b0a7b
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.004b1690
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 [0x5269e5]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x4188de
push 0x15e
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4188f1
push ebx
call fcn.004b0a7b
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x418932
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x526991]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41892d
push 0x1b4
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
jmp 0x418a4a
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401f24
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418977
push ebx
call fcn.004b0a7b
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41898a
mov eax, 0x4c320b
push eax
push 1
mov ebx, 0x198
call fcn.004b2780
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4189b0
push ebx
call fcn.004b0a7b
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.004049fa
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4189cc
push ebx
call fcn.004b0a7b
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.004b1690
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 0x418a1f
push 0x267
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x418a32
push ebx
call fcn.004b0a7b
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 0x418a52
pop eax
pop ebx
pop ecx
jmp 0x4187e1
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x418c2e
cmp dword [ebp + 0x10], 1
jne 0x418aff
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4c4019
push dword [ebp - 0x20]
push 0x4c401c
mov ecx, 3
call fcn.00401f24
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418ab5
push ebx
call fcn.004b0a7b
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4c402d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004182f0
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418aea
push ebx
call fcn.004b0a7b
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x418afa
push ebx
call fcn.004b0a7b
add esp, 4
jmp 0x418b90
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4c4019
push dword [ebp - 0x20]
push 0x4c403e
mov ecx, 3
call fcn.00401f24
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418b4b
push ebx
call fcn.004b0a7b
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4c402d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004182f0
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418b80
push ebx
call fcn.004b0a7b
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x418b90
push ebx
call fcn.004b0a7b
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x526981]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x418bc3
push 0x46c
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x5269e9]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x418bf1
push 0x491
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
call fcn.0041949a
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x5269ed]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x418c24
push 0x4c0
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x418c24
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401f24
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418c73
push ebx
call fcn.004b0a7b
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x418c86
mov eax, 0x4c320b
push eax
push 1
mov ebx, 0x198
call fcn.004b2780
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418cac
push ebx
call fcn.004b0a7b
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040bde1
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x418cc8
push ebx
call fcn.004b0a7b
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 0x418cfe
push 0x59b
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x418d11
push ebx
call fcn.004b0a7b
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x418eea
cmp dword [ebp + 0x10], 1
jne 0x418dbb
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4c4019
push dword [ebp - 0x20]
push 0x4c401c
mov ecx, 3
call fcn.00401f24
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418d71
push ebx
call fcn.004b0a7b
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4c402d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004182f0
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418da6
push ebx
call fcn.004b0a7b
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x418db6
push ebx
call fcn.004b0a7b
add esp, 4
jmp 0x418e4c
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4c4019
push dword [ebp - 0x20]
push 0x4c403e
mov ecx, 3
call fcn.00401f24
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418e07
push ebx
call fcn.004b0a7b
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4c402d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004182f0
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418e3c
push ebx
call fcn.004b0a7b
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x418e4c
push ebx
call fcn.004b0a7b
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x526981]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x418e7f
push 0x701
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x5269e9]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x418ead
push 0x726
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
call fcn.0041949a
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x5269ed]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x418ee0
push 0x755
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x418ee0
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401f24
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418f2f
push ebx
call fcn.004b0a7b
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x418f42
mov eax, 0x4c320b
push eax
push 1
mov ebx, 0x198
call fcn.004b2780
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418f68
push ebx
call fcn.004b0a7b
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040bde1
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x418f84
push ebx
call fcn.004b0a7b
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 0x418fc9
push 0x82d
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x418fd9
push ebx
call fcn.004b0a7b
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401f24
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41901e
push ebx
call fcn.004b0a7b
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x419031
mov eax, 0x4c320b
push eax
push 1
mov ebx, 0x198
call fcn.004b2780
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x419057
push ebx
call fcn.004b0a7b
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0041234f
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x419073
push ebx
call fcn.004b0a7b
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 0x4190a9
push 0x8dd
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4190bc
push ebx
call fcn.004b0a7b
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x419295
cmp dword [ebp + 0x10], 1
jne 0x419166
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4c4019
push dword [ebp - 0x20]
push 0x4c401c
mov ecx, 3
call fcn.00401f24
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41911c
push ebx
call fcn.004b0a7b
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4c402d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004182f0
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x419151
push ebx
call fcn.004b0a7b
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x419161
push ebx
call fcn.004b0a7b
add esp, 4
jmp 0x4191f7
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4c4019
push dword [ebp - 0x20]
push 0x4c403e
mov ecx, 3
call fcn.00401f24
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4191b2
push ebx
call fcn.004b0a7b
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4c402d
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004182f0
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4191e7
push ebx
call fcn.004b0a7b
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4191f7
push ebx
call fcn.004b0a7b
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x526981]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41922a
push 0xa43
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x5269e9]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x419258
push 0xa68
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
call fcn.0041949a
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x5269ed]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41928b
push 0xa97
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x41928b
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004b1690
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401f24
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4192da
push ebx
call fcn.004b0a7b
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4192ed
mov eax, 0x4c320b
push eax
push 1
mov ebx, 0x198
call fcn.004b2780
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x419313
push ebx
call fcn.004b0a7b
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0041234f
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41932f
push ebx
call fcn.004b0a7b
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 0x41936a
push 0xb2b
push 0x402a9c3
push 6
call fcn.004b0a81
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41937a
push ebx
call fcn.004b0a7b
add esp, 4
push ecx
push eax
mov eax, 1
mov ecx, 2
mov eax, 4
mov ecx, 2
pop eax
pop ecx
nop
jmp 0x4193a3
nop
nop
nop
nop
nop
nop
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4193b9
push ebx
call fcn.004b0a7b
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004b0a7b
add esp, 4
mov esp, ebp
pop ebp
ret 0xc