Function at 0x415c81
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 8
call fcn.0049c8e3
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, eax
mov esi, 0x4ae216
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
push 0x198
call fcn.0049c8e3
add esp, 4
mov dword [ebp - 0x2c], eax
mov edi, eax
mov esi, 0x4aedc1
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x64
rep stosd dword es:[edi], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
jmp 0x415d3d
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
mov dword [ebp - 0x44], esp
push 0
xor eax, eax
call dword [0x4b5090]
nop
nop
cmp dword [ebp - 0x44], esp
je 0x415da6
push 0x18
push 0x402ca29
push 6
call fcn.0049c8ef
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push ecx
mov eax, dword fs:[0x18]
add eax, 0x100
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
add eax, 4
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
pop ecx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00416620
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x415e0f
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
push 0x4aeda5
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x415e46
mov eax, 0x4ae216
push eax
push 3
mov ebx, 0x1c4
call fcn.0049fe00
add esp, 0x28
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x415e7e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x415e7a
imul eax, dword [ebx]
jmp 0x415e6f
mov ecx, eax
test ecx, ecx
je 0x415e9d
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x415e96
push ebx
push eax
call fcn.0049c8e9
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x415e84
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040349d
mov dword [ebp - 0x44], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x415ec8
mov eax, 0x4ae216
push eax
push 1
mov ebx, 0x194
call fcn.0049d7f0
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.0049dbc0
add esp, 0x10
mov dword [ebp - 0x4c], eax
push 8
call fcn.0049c8e3
add esp, 4
mov dword [ebp - 0x50], eax
mov edi, eax
mov esi, 0x4ae216
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x44]
call fcn.004155a1
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x415f35
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x50]
push ebx
call fcn.0049c8e9
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
xor ecx, ecx
lea eax, [ebp - 0x28]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x64
jg 0x415fc8
mov ebx, dword [ebp - 0x2c]
call fcn.00402533
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x415f8b
push 0x36b
push 0x402ca29
push 4
call fcn.0049c8ef
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x415fa8
push 0x36b
push 0x402ca29
push 1
call fcn.0049c8ef
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push 0xff
push 1
call fcn.00403282
mov ebx, dword [ebp - 0x44]
mov dword [ebx], eax
pop ebx
pop ecx
jmp 0x415f56
add esp, 8
xor ecx, ecx
lea eax, [ebp - 0x28]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 0x64
jg 0x416047
mov ebx, dword [0x4b4e48]
call fcn.00402533
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x41600a
push 0x3e8
push 0x402ca29
push 4
call fcn.0049c8ef
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x416027
push 0x3e8
push 0x402ca29
push 1
call fcn.0049c8ef
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push 0xff
push 1
call fcn.00403282
mov ebx, dword [ebp - 0x44]
mov dword [ebx], eax
pop ebx
pop ecx
jmp 0x415fd2
add esp, 8
push 0x9fb
push 0x64
call fcn.00403282
mov dword [0x4b4e4c], eax
mov ebx, dword [ebp - 0x1c]
call fcn.004038ff
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 8
jne 0x41653b
xor ecx, ecx
lea eax, [ebp - 0x28]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 8
jg 0x416230
cmp dword [ebp - 0x28], 8
je 0x41617a
mov ebx, dword [ebp - 0x1c]
call fcn.00402533
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4160b9
push 0x567
push 0x402ca29
push 4
call fcn.0049c8ef
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4160d6
push 0x567
push 0x402ca29
push 1
call fcn.0049c8ef
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push dword [ebp - 0x44]
call fcn.00408a3a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0049dde0
add esp, 0x10
mov dword [ebp - 0x4c], eax
push 0x80000101
push 0
push 0x2a
push 1
mov ebx, 0x140
call fcn.0049f900
add esp, 0x10
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
mov ecx, 3
call fcn.004013f3
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x41614d
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x41615d
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x416171
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
jmp 0x416229
mov ebx, dword [ebp - 0x1c]
call fcn.00402533
push ebx
push ecx
mov eax, dword [ebp - 0x28]
dec eax
jns 0x4161a1
push 0x5ec
push 0x402ca29
push 4
call fcn.0049c8ef
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4161be
push 0x5ec
push 0x402ca29
push 1
call fcn.0049c8ef
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x44], ebx
push dword [ebp - 0x44]
call fcn.00408a3a
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.0049dde0
add esp, 0x10
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
mov ecx, 2
call fcn.004013f3
add esp, 8
mov dword [ebp - 0x50], eax
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x416211
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x50]
push eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x416225
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x30], eax
pop ebx
pop ecx
jmp 0x41607a
add esp, 8
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x416251
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x41624d
imul eax, dword [ebx]
jmp 0x416242
mov ecx, eax
test ecx, ecx
je 0x416270
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x416269
push ebx
push eax
call fcn.0049c8e9
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x416257
call fcn.0049c8e9
add esp, 4
mov eax, 0x4ae216
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x34], 0x83a3ee9c
mov dword [ebp - 0x38], 0xa860f3ec
mov eax, dword fs:[0x18]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call fcn.00416924
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [0x4b4e50]
test ebx, ebx
je 0x4162bd
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [0x4b4e50], eax
push 0x4b4e50
call fcn.0040a634
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4162e4
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x3c], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [0x4b4e50]
test eax, eax
jne 0x4162fd
mov eax, 0x4ae216
push eax
push 1
mov ebx, 0x194
call fcn.0049d7f0
add esp, 0x10
mov dword [ebp - 0x44], eax
push reloc.WS2_32.dll_getpeername
push 0
push 0x4ae633
push 0x80000301
push 0
push dword [ebp - 0x44]
push 2
mov ebx, 0x1c0
call fcn.0049f5b0
add esp, 0x1c
mov dword [ebp - 0x48], eax
push 0x4b4e50
call fcn.0040349d
push 0
push 0
push 0
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x416369
mov eax, 0x4ae216
push eax
push 3
mov ebx, 0x914
call fcn.0049fd20
add esp, 0x28
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x41638c
push ebx
call fcn.0049c8e9
add esp, 4
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x41639f
mov eax, 0x4ae205
push eax
push 1
mov ebx, 0x198
call fcn.0049e5a0
add esp, 0x10
mov dword [ebp - 0x44], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4163c8
mov eax, 0x4ae205
push eax
push 1
mov ebx, 0x198
call fcn.0049e5a0
add esp, 0x10
mov dword [ebp - 0x48], eax
push 0x80000301
push 0
push dword [ebp - 0x34]
push 1
mov ebx, 0x198
call fcn.0049e5a0
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
push 1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041437b
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x41642b
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x41643b
push ebx
call fcn.0049c8e9
add esp, 4
push 0x80000301
push 0
push dword [0x4b4e54]
push 1
mov ebx, 0x198
call fcn.0049e5a0
add esp, 0x10
mov dword [ebp - 0x58], eax
push dword [ebp - 0x58]
push 0x4aedb1
push dword [ebp - 0x54]
push 0x4aedb1
push dword [ebp - 0x44]
mov ecx, 5
call fcn.0040144f
add esp, 0x14
mov dword [ebp - 0x5c], eax
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x416493
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x4164a3
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x58]
test ebx, ebx
je 0x4164b3
push ebx
call fcn.0049c8e9
add esp, 4
mov eax, dword [ebp - 0x5c]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4164ca
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040349d
mov dword [ebp - 0x44], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4164ed
mov eax, 0x4ae216
push eax
push 1
mov ebx, 0x194
call fcn.0049d7f0
add esp, 0x10
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fstp qword [ebp - 0x50]
fld qword [ebp - 0x50]
fdiv qword [0x4ae231]
fstp qword [ebp - 0x58]
push 0x80000601
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push 1
mov ebx, 0x9dc
call fcn.0049e680
add esp, 0x10
push eax
push dword [ebp - 0x44]
call fcn.004179f8
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x416555
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0049c8e3
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x416589
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41659a
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4165b8
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4165b4
imul eax, dword [ebx]
jmp 0x4165a9
mov ecx, eax
test ecx, ecx
je 0x4165d7
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4165d0
push ebx
push eax
call fcn.0049c8e9
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4165be
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x2c]
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4165fb
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x41660b
push ebx
call fcn.0049c8e9
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x41661b
push ebx
call fcn.0049c8e9
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret