Function at 0x41be58
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.004a96bd
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 0x41bec3
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.0040c4f0
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41bf30
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41bf44
push ebx
call fcn.004a96c3
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 0x41c1c5
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41bfa7
push ebx
call fcn.004a96c3
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41bfba
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004abaf0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41bfe0
push ebx
call fcn.004a96c3
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.004045f1
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41bffc
push ebx
call fcn.004a96c3
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.004aab40
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 [0x4c2ba1]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x41c051
push 0x15e
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x41c064
push ebx
call fcn.004a96c3
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x41c0a5
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x4c2b11]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c0a0
push 0x1b4
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
jmp 0x41c1bd
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c0ea
push ebx
call fcn.004a96c3
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41c0fd
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004abaf0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c123
push ebx
call fcn.004a96c3
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.004045f1
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c13f
push ebx
call fcn.004a96c3
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.004aab40
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 0x41c192
push 0x267
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x41c1a5
push ebx
call fcn.004a96c3
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 0x41c1c5
pop eax
pop ebx
pop ecx
jmp 0x41bf54
add esp, 0xc
cmp dword [ebp - 0x18], 0
jne 0x41c3a1
cmp dword [ebp + 0x10], 1
jne 0x41c272
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc134
push dword [ebp - 0x20]
push 0x4bc137
mov ecx, 3
call fcn.0040150f
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c228
push ebx
call fcn.004a96c3
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc148
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041ba63
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c25d
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c26d
push ebx
call fcn.004a96c3
add esp, 4
jmp 0x41c303
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc134
push dword [ebp - 0x20]
push 0x4bc159
mov ecx, 3
call fcn.0040150f
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c2be
push ebx
call fcn.004a96c3
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc148
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041ba63
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c2f3
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c303
push ebx
call fcn.004a96c3
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x4c2b01]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c336
push 0x46c
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x4c2ba5]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c364
push 0x491
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
call fcn.004104c1
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x4c2ba9]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c397
push 0x4c0
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x41c397
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c3e6
push ebx
call fcn.004a96c3
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41c3f9
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004abaf0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c41f
push ebx
call fcn.004a96c3
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040b9d8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c43b
push ebx
call fcn.004a96c3
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 0x41c471
push 0x59b
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41c484
push ebx
call fcn.004a96c3
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x41c65d
cmp dword [ebp + 0x10], 1
jne 0x41c52e
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc134
push dword [ebp - 0x20]
push 0x4bc137
mov ecx, 3
call fcn.0040150f
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c4e4
push ebx
call fcn.004a96c3
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc148
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041ba63
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c519
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c529
push ebx
call fcn.004a96c3
add esp, 4
jmp 0x41c5bf
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc134
push dword [ebp - 0x20]
push 0x4bc159
mov ecx, 3
call fcn.0040150f
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c57a
push ebx
call fcn.004a96c3
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc148
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041ba63
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c5af
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c5bf
push ebx
call fcn.004a96c3
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x4c2b01]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c5f2
push 0x701
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x4c2ba5]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c620
push 0x726
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
call fcn.004104c1
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x4c2ba9]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c653
push 0x755
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x41c653
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c6a2
push ebx
call fcn.004a96c3
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41c6b5
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004abaf0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c6db
push ebx
call fcn.004a96c3
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040b9d8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c6f7
push ebx
call fcn.004a96c3
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 0x41c73c
push 0x82d
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41c74c
push ebx
call fcn.004a96c3
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c791
push ebx
call fcn.004a96c3
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41c7a4
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004abaf0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c7ca
push ebx
call fcn.004a96c3
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00415ac2
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c7e6
push ebx
call fcn.004a96c3
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 0x41c81c
push 0x8dd
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41c82f
push ebx
call fcn.004a96c3
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x41ca08
cmp dword [ebp + 0x10], 1
jne 0x41c8d9
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc134
push dword [ebp - 0x20]
push 0x4bc137
mov ecx, 3
call fcn.0040150f
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c88f
push ebx
call fcn.004a96c3
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc148
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041ba63
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c8c4
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c8d4
push ebx
call fcn.004a96c3
add esp, 4
jmp 0x41c96a
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x4bc134
push dword [ebp - 0x20]
push 0x4bc159
mov ecx, 3
call fcn.0040150f
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41c925
push ebx
call fcn.004a96c3
add esp, 4
push 1
push 0x1388
push 1
mov eax, 0x4bc148
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push 0x10
lea eax, [ebp - 0x24]
push eax
call fcn.0041ba63
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41c95a
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41c96a
push ebx
call fcn.004a96c3
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x4c2b01]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c99d
push 0xa43
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x4c2ba5]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c9cb
push 0xa68
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
call fcn.004104c1
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x4c2ba9]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x41c9fe
push 0xa97
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x41c9fe
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.004aab40
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.0040150f
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41ca4d
push ebx
call fcn.004a96c3
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x41ca60
mov eax, 0x4bb20b
push eax
push 1
mov ebx, 0x198
call fcn.004abaf0
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41ca86
push ebx
call fcn.004a96c3
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00415ac2
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x41caa2
push ebx
call fcn.004a96c3
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 0x41cadd
push 0xb2b
push 0x402745d
push 6
call fcn.004a96c9
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x41caed
push ebx
call fcn.004a96c3
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 0x41cb16
nop
nop
nop
nop
nop
nop
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41cb2c
push ebx
call fcn.004a96c3
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004a96c3
add esp, 4
mov esp, ebp
pop ebp
ret 0xc