Function at 0x401dfd
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.004318b0
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 0x401e68
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.0040299b
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push dword [ebp - 0x20]
mov ecx, 2
call fcn.004013fd
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401ed5
push ebx
call fcn.004318b6
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401ee9
push ebx
call fcn.004318b6
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 0x40216a
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.00432f50
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013fd
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401f4c
push ebx
call fcn.004318b6
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x401f5f
mov eax, 0x45e33b
push eax
push 1
mov ebx, 0x198
call fcn.00432a30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401f85
push ebx
call fcn.004318b6
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00402a6a
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401fa1
push ebx
call fcn.004318b6
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.00432f50
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 [0x460d2f]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x401ff6
push 0x146
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x402009
push ebx
call fcn.004318b6
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40204a
mov dword [ebp - 0x20], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [0x460d33]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402045
push 0x19c
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
jmp 0x402162
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x168
call fcn.00432f50
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013fd
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40208f
push ebx
call fcn.004318b6
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4020a2
mov eax, 0x45e33b
push eax
push 1
mov ebx, 0x198
call fcn.00432a30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4020c8
push ebx
call fcn.004318b6
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00402a6a
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4020e4
push ebx
call fcn.004318b6
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 1
mov ebx, 0x168
call fcn.00432f50
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 0x402137
push 0x24f
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40214a
push ebx
call fcn.004318b6
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 0x40216a
pop eax
pop ebx
pop ecx
jmp 0x401ef9
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x4027e2
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.00432f50
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013fd
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4021bc
push ebx
call fcn.004318b6
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4021cf
mov eax, 0x45e33b
push eax
push 1
mov ebx, 0x198
call fcn.00432a30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4021f5
push ebx
call fcn.004318b6
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00402b2c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x402211
push ebx
call fcn.004318b6
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 0x402247
push 0x36d
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40225a
push ebx
call fcn.004318b6
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x4023c0
cmp dword [ebp + 0x14], 2
jge 0x4023b6
cmp dword [ebp + 0x14], 0
jne 0x402318
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.00432f50
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x45e3a5
push dword [ebp - 0x20]
push 0x45e3a8
mov ecx, 3
call fcn.004013fd
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4022c4
push ebx
call fcn.004318b6
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x45e3c0
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x4022f5
mov eax, 0x45e33b
push eax
push 4
mov ebx, 0x300
call fcn.004324a0
add esp, 0x34
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402318
push ebx
call fcn.004318b6
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x460d37]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40234b
push 0x480
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x460d3b]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402379
push 0x4a5
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
call fcn.00402da0
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x460d3f]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4023ac
push 0x4d4
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x4023ac
mov eax, 0
jmp 0x402977
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.00432f50
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013fd
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402405
push ebx
call fcn.004318b6
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x402418
mov eax, 0x45e33b
push eax
push 1
mov ebx, 0x198
call fcn.00432a30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40243e
push ebx
call fcn.004318b6
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.00402b2c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40245a
push ebx
call fcn.004318b6
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 0x40249f
push 0x5c4
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4024af
push ebx
call fcn.004318b6
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.00432f50
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013fd
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4024f4
push ebx
call fcn.004318b6
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x402507
mov eax, 0x45e33b
push eax
push 1
mov ebx, 0x198
call fcn.00432a30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40252d
push ebx
call fcn.004318b6
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040331e
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x402549
push ebx
call fcn.004318b6
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 0x40257f
push 0x661
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x402592
push ebx
call fcn.004318b6
add esp, 4
cmp dword [ebp - 0x34], 0
je 0x4026f8
cmp dword [ebp + 0x14], 2
jge 0x4026ee
cmp dword [ebp + 0x14], 0
jne 0x402650
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.00432f50
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x45e3a5
push dword [ebp - 0x20]
push 0x45e3a8
mov ecx, 3
call fcn.004013fd
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4025fc
push ebx
call fcn.004318b6
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x45e3c0
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40262d
mov eax, 0x45e33b
push eax
push 4
mov ebx, 0x300
call fcn.004324a0
add esp, 0x34
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402650
push ebx
call fcn.004318b6
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x460d37]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x402683
push 0x787
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x460d3b]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4026b1
push 0x7ac
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
call fcn.00402da0
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x460d3f]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4026e4
push 0x7db
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x4026e4
mov eax, 0
jmp 0x402977
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 1
mov ebx, 0x168
call fcn.00432f50
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push dword [ebp - 4]
mov ecx, 2
call fcn.004013fd
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40273d
push ebx
call fcn.004318b6
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x402750
mov eax, 0x45e33b
push eax
push 1
mov ebx, 0x198
call fcn.00432a30
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402776
push ebx
call fcn.004318b6
add esp, 4
lea eax, [ebp - 0x28]
push eax
call fcn.0040331e
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x402792
push ebx
call fcn.004318b6
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 0x4027cd
push 0x8ad
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4027dd
push ebx
call fcn.004318b6
add esp, 4
jmp 0x40293e
cmp dword [ebp + 0x14], 2
jge 0x402934
cmp dword [ebp + 0x14], 0
jne 0x402896
push 0x80000301
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x168
call fcn.00432f50
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0x45e3a5
push dword [ebp - 0x20]
push 0x45e3a8
mov ecx, 3
call fcn.004013fd
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x402842
push ebx
call fcn.004318b6
add esp, 4
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push 0x45e3c0
push 0x80000301
push 0
push 0x10
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x402873
mov eax, 0x45e33b
push eax
push 4
mov ebx, 0x300
call fcn.004324a0
add esp, 0x34
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x402896
push ebx
call fcn.004318b6
add esp, 4
mov dword [ebp - 0x20], esp
push 0
push 0xffffffff
xor eax, eax
call dword [0x460d37]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4028c9
push 0x9c9
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov dword [ebp - 0x20], esp
push 0
xor eax, eax
call dword [0x460d3b]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4028f7
push 0x9ee
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
call fcn.00402da0
mov dword [ebp - 0x20], esp
push 0xfffffffe
xor eax, eax
call dword [0x460d3f]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40292a
push 0xa1d
push 0x406a9fb
push 6
call fcn.004318a4
add esp, 0xc
mov eax, 1
cmp eax, 2
jne 0x40292a
mov eax, 0
jmp 0x402977
mov eax, 1
jmp 0x402977
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402988
push ebx
call fcn.004318b6
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004318b6
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14