Function at 0x41b799
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.004a9c7c
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 0x41b804
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.0040be31
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41b871
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41b885
push ebx
call fcn.004a9c82
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 0x41bb06
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41b8e8
push ebx
call fcn.004a9c82
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41b8fb
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004aba90
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41b921
push ebx
call fcn.004a9c82
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00403f32
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41b93d
push ebx
call fcn.004a9c82
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.004ab1f0
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 [0x4c2b8f]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x41b992
push 0x15e
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x41b9a5
push ebx
call fcn.004a9c82
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41b9e6
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x4c2aff]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41b9e1
push 0x1b4
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
jmp 0x41bafe
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41ba2b
push ebx
call fcn.004a9c82
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41ba3e
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004aba90
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41ba64
push ebx
call fcn.004a9c82
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00403f32
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41ba80
push ebx
call fcn.004a9c82
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.004ab1f0
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 0x41bad3
push 0x267
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x41bae6
push ebx
call fcn.004a9c82
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 0x41bb06
pop eax
pop ebx
pop ecx
jmp 0x41b895
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x41bce2
cmp dword [ebp + 0x10], 1
jne 0x41bbb3
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc0d4
push dword [ebp - 0x20]
push 0x4bc0d7
mov ecx, 3
call fcn.00401cb4
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41bb69
push ebx
call fcn.004a9c82
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc0e8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041b3a4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41bb9e
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41bbae
push ebx
call fcn.004a9c82
add esp, 4
jmp 0x41bc44
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc0d4
push dword [ebp - 0x20]
push 0x4bc0f9
mov ecx, 3
call fcn.00401cb4
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41bbff
push ebx
call fcn.004a9c82
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc0e8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041b3a4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41bc34
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41bc44
push ebx
call fcn.004a9c82
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x4c2aef]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41bc77
push 0x46c
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x4c2b93]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41bca5
push 0x491
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
call fcn.0040fe02
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x4c2b97]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41bcd8
push 0x4c0
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x41bcd8
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41bd27
push ebx
call fcn.004a9c82
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41bd3a
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004aba90
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41bd60
push ebx
call fcn.004a9c82
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040b319
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41bd7c
push ebx
call fcn.004a9c82
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 0x41bdb2
push 0x59b
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41bdc5
push ebx
call fcn.004a9c82
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x41bf9e
cmp dword [ebp + 0x10], 1
jne 0x41be6f
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc0d4
push dword [ebp - 0x20]
push 0x4bc0d7
mov ecx, 3
call fcn.00401cb4
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41be25
push ebx
call fcn.004a9c82
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc0e8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041b3a4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41be5a
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41be6a
push ebx
call fcn.004a9c82
add esp, 4
jmp 0x41bf00
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc0d4
push dword [ebp - 0x20]
push 0x4bc0f9
mov ecx, 3
call fcn.00401cb4
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41bebb
push ebx
call fcn.004a9c82
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc0e8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041b3a4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41bef0
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41bf00
push ebx
call fcn.004a9c82
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x4c2aef]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41bf33
push 0x701
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x4c2b93]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41bf61
push 0x726
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
call fcn.0040fe02
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x4c2b97]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41bf94
push 0x755
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x41bf94
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41bfe3
push ebx
call fcn.004a9c82
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41bff6
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004aba90
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c01c
push ebx
call fcn.004a9c82
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040b319
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c038
push ebx
call fcn.004a9c82
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 0x41c07d
push 0x82d
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41c08d
push ebx
call fcn.004a9c82
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c0d2
push ebx
call fcn.004a9c82
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41c0e5
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004aba90
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c10b
push ebx
call fcn.004a9c82
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00415403
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c127
push ebx
call fcn.004a9c82
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 0x41c15d
push 0x8dd
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41c170
push ebx
call fcn.004a9c82
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x41c349
cmp dword [ebp + 0x10], 1
jne 0x41c21a
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc0d4
push dword [ebp - 0x20]
push 0x4bc0d7
mov ecx, 3
call fcn.00401cb4
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c1d0
push ebx
call fcn.004a9c82
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc0e8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041b3a4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c205
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c215
push ebx
call fcn.004a9c82
add esp, 4
jmp 0x41c2ab
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc0d4
push dword [ebp - 0x20]
push 0x4bc0f9
mov ecx, 3
call fcn.00401cb4
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c266
push ebx
call fcn.004a9c82
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc0e8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041b3a4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c29b
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c2ab
push ebx
call fcn.004a9c82
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x4c2aef]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c2de
push 0xa43
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x4c2b93]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c30c
push 0xa68
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
call fcn.0040fe02
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x4c2b97]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c33f
push 0xa97
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x41c33f
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004ab1f0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.00401cb4
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c38e
push ebx
call fcn.004a9c82
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41c3a1
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004aba90
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c3c7
push ebx
call fcn.004a9c82
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00415403
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c3e3
push ebx
call fcn.004a9c82
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 0x41c41e
push 0xb2b
push 0x4026f80
push 6
call fcn.004a9c88
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41c42e
push ebx
call fcn.004a9c82
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 0x41c457
nop
nop
nop
nop
nop
nop
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41c46d
push ebx
call fcn.004a9c82
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004a9c82
add esp, 4
mov esp, ebp
pop ebp
ret 0xc