Function at 0x4178ac
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.004aad9e
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 0x417917
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.00418592
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x417984
push ebx
call fcn.004aada4
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x417998
push ebx
call fcn.004aada4
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 0x417c19
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4179fb
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x417a0e
mov eax, 0x4bd214
push eax
push 1
mov ebx, 0x198
call fcn.004ac910
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x417a34
push ebx
call fcn.004aada4
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00403ac6
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x417a50
push ebx
call fcn.004aada4
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.004ab8a0
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 [0x5230c5]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x417aa5
push 0x15e
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x417ab8
push ebx
call fcn.004aada4
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x417af9
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x523071]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x417af4
push 0x1b4
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
jmp 0x417c11
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x417b3e
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x417b51
mov eax, 0x4bd214
push eax
push 1
mov ebx, 0x198
call fcn.004ac910
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x417b77
push ebx
call fcn.004aada4
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00403ac6
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x417b93
push ebx
call fcn.004aada4
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.004ab8a0
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 0x417be6
push 0x267
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x417bf9
push ebx
call fcn.004aada4
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 0x417c19
pop eax
pop ebx
pop ecx
jmp 0x4179a8
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x417df5
cmp dword [ebp + 0x10], 1
jne 0x417cc6
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bdda4
push dword [ebp - 0x20]
push 0x4bdda7
mov ecx, 3
call fcn.00401448
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x417c7c
push ebx
call fcn.004aada4
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bddb8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004174b7
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x417cb1
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x417cc1
push ebx
call fcn.004aada4
add esp, 4
jmp 0x417d57
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bdda4
push dword [ebp - 0x20]
push 0x4bddc9
mov ecx, 3
call fcn.00401448
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x417d12
push ebx
call fcn.004aada4
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bddb8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004174b7
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x417d47
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x417d57
push ebx
call fcn.004aada4
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x523061]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x417d8a
push 0x46c
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x5230c9]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x417db8
push 0x491
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
call fcn.00418661
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x5230cd]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x417deb
push 0x4c0
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x417deb
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x417e3a
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x417e4d
mov eax, 0x4bd214
push eax
push 1
mov ebx, 0x198
call fcn.004ac910
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x417e73
push ebx
call fcn.004aada4
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040aead
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x417e8f
push ebx
call fcn.004aada4
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 0x417ec5
push 0x59b
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x417ed8
push ebx
call fcn.004aada4
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x4180b1
cmp dword [ebp + 0x10], 1
jne 0x417f82
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bdda4
push dword [ebp - 0x20]
push 0x4bdda7
mov ecx, 3
call fcn.00401448
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x417f38
push ebx
call fcn.004aada4
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bddb8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004174b7
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x417f6d
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x417f7d
push ebx
call fcn.004aada4
add esp, 4
jmp 0x418013
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bdda4
push dword [ebp - 0x20]
push 0x4bddc9
mov ecx, 3
call fcn.00401448
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x417fce
push ebx
call fcn.004aada4
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bddb8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004174b7
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418003
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x418013
push ebx
call fcn.004aada4
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x523061]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x418046
push 0x701
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x5230c9]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x418074
push 0x726
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
call fcn.00418661
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x5230cd]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4180a7
push 0x755
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x4180a7
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4180f6
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x418109
mov eax, 0x4bd214
push eax
push 1
mov ebx, 0x198
call fcn.004ac910
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41812f
push ebx
call fcn.004aada4
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040aead
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41814b
push ebx
call fcn.004aada4
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 0x418190
push 0x82d
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4181a0
push ebx
call fcn.004aada4
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4181e5
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4181f8
mov eax, 0x4bd214
push eax
push 1
mov ebx, 0x198
call fcn.004ac910
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41821e
push ebx
call fcn.004aada4
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0041141b
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41823a
push ebx
call fcn.004aada4
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 0x418270
push 0x8dd
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x418283
push ebx
call fcn.004aada4
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x41845c
cmp dword [ebp + 0x10], 1
jne 0x41832d
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bdda4
push dword [ebp - 0x20]
push 0x4bdda7
mov ecx, 3
call fcn.00401448
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4182e3
push ebx
call fcn.004aada4
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bddb8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004174b7
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x418318
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x418328
push ebx
call fcn.004aada4
add esp, 4
jmp 0x4183be
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bdda4
push dword [ebp - 0x20]
push 0x4bddc9
mov ecx, 3
call fcn.00401448
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x418379
push ebx
call fcn.004aada4
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bddb8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.004174b7
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4183ae
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4183be
push ebx
call fcn.004aada4
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x523061]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4183f1
push 0xa43
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x5230c9]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41841f
push 0xa68
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
call fcn.00418661
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x5230cd]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x418452
push 0xa97
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x418452
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004ab8a0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4184a1
push ebx
call fcn.004aada4
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4184b4
mov eax, 0x4bd214
push eax
push 1
mov ebx, 0x198
call fcn.004ac910
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4184da
push ebx
call fcn.004aada4
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0041141b
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4184f6
push ebx
call fcn.004aada4
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 0x418531
push 0xb2b
push 0x414c407
push 6
call fcn.004aadaa
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x418541
push ebx
call fcn.004aada4
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 0x41856a
nop
nop
nop
nop
nop
nop
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x418580
push ebx
call fcn.004aada4
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004aada4
add esp, 4
mov esp, ebp
pop ebp
ret 0xc