Function at 0x41f660
Capabilities:
Enumerate pe sections
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41f67e
pop edi
pop esi
pop ebp
mov eax, 0xffffd8ef
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x28]
mov ecx, ebp
push eax
call fcn.0041fb40
xor edi, edi
mov dword [esp + 0x28], edi
mov esi, 2
sub esi, edi
test esi, esi
jle 0x41f70b
call fcn.0042bf14
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [esp + edi + 0x2c]
push esi
push ecx
push edx
mov ebx, eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x41f6c5
test eax, eax
je 0x41f7b5
add edi, eax
jmp 0x41f690
mov ecx, ebp
call fcn.0041fca0
test eax, eax
je 0x41f6df
pop edi
pop esi
pop ebp
mov eax, 0xffffd8ec
pop ebx
add esp, 0x14
ret 4
call fcn.0042bf14
sub eax, ebx
cmp eax, 1
jl 0x41f7b5
mov ecx, ebp
call fcn.0041fc40
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ebp
add eax, 0xffffd8eb
pop ebx
add esp, 0x14
ret 4
push 0
call fcn.0041276a
mov dword [ebp + 0x148], eax
mov eax, dword [esp + 0x2c]
add eax, 2
push eax
call fcn.0042d143
add esp, 8
mov ebx, eax
xor edi, edi
mov eax, dword [esp + 0x28]
mov esi, eax
sub esi, edi
test esi, esi
jle 0x41f7c4
call fcn.0042bf14
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebx + edi + 2]
push esi
push ecx
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x41f764
test eax, eax
je 0x41f7ac
add edi, eax
jmp 0x41f72c
push ebx
call fcn.0042d16c
add esp, 4
mov ecx, ebp
call fcn.0041fca0
test eax, eax
je 0x41f787
pop edi
pop esi
pop ebp
mov eax, 0xffffd8ec
pop ebx
add esp, 0x14
ret 4
call fcn.0042bf14
mov esi, dword [esp + 0x18]
xor ecx, ecx
sub eax, esi
pop edi
cmp eax, 1
pop esi
setl cl
add ecx, 0xffffd8eb
pop ebp
mov eax, ecx
pop ebx
add esp, 0x14
ret 4
push ebx
call fcn.0042d16c
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0xffffd8ec
pop ebx
add esp, 0x14
ret 4
mov word [ebx], ax
mov al, byte [ebx + 8]
test al, al
mov dword [esp + 0x14], 0
je 0x41f873
movsx edx, word [ebx + 6]
add edx, 2
push edx
call fcn.0042d143
movsx ecx, word [ebx]
add ecx, 2
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], eax
and ecx, 3
add eax, 0x1a
rep movsb byte es:[edi], byte [esi]
movsx ecx, word [ebx + 6]
movsx edx, word [ebx]
sub ecx, 0x18
sub edx, 0x18
push ecx
push eax
lea eax, [ebx + 0x1a]
push edx
push eax
call fcn.00421950
add esp, 0x14
cmp eax, 0xffffffff
jne 0x41f830
push 0
push 0x44b2f4
jmp 0x41f842
movsx ecx, word [ebx + 6]
sub ecx, 0x18
cmp eax, ecx
je 0x41f859
push 0
push 0x44b2ec
push 0x44b080
push 0
call fcn.0041ee20
add esp, 0x10
mov dword [esp + 0x14], 0xffffd8e9
mov esi, dword [esp + 0x18]
mov dx, word [ebx + 6]
push ebx
mov word [esi], dx
mov byte [esi + 8], 0
call fcn.0042d16c
add esp, 4
mov ebx, esi
cmp word [ebx + 0xe], 0
jne 0x41f892
push ebx
call fcn.0042d16c
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
lea eax, [ebp + 0x188]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp + 0x1a8]
mov eax, dword [ebp + 0x1a4]
mov esi, edx
xor edi, edi
mov dword [esp + 0x18], esi
inc esi
cmp esi, edi
jne 0x41f8e0
cmp eax, edi
je 0x41f8cf
push eax
call fcn.0042d16c
add esp, 4
mov dword [ebp + 0x1a4], edi
mov dword [ebp + 0x1ac], edi
mov dword [ebp + 0x1a8], edi
jmp 0x41f9f5
cmp eax, edi
jne 0x41f921
lea edi, [esi*4]
push edi
call fcn.0042d143
mov edx, eax
mov ecx, edi
mov dword [ebp + 0x1a4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp + 0x1ac], esi
mov dword [ebp + 0x1a8], esi
jmp 0x41f9f5
mov ecx, dword [ebp + 0x1ac]
cmp esi, ecx
jg 0x41f945
cmp esi, edx
jle 0x41f93a
mov ecx, esi
lea edi, [eax + edx*4]
sub ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebp + 0x1a8], esi
jmp 0x41f9f5
mov eax, dword [ebp + 0x1b0]
cmp eax, edi
jne 0x41f972
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x41f966
mov eax, 4
jmp 0x41f972
cmp eax, 0x400
jle 0x41f972
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x41f980
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call fcn.0042d143
mov ecx, dword [ebp + 0x1a8]
mov esi, dword [ebp + 0x1a4]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x20], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x1a8]
lea esi, [ecx + 1]
lea edi, [eax + edx*4]
mov ecx, esi
xor eax, eax
sub ecx, edx
rep stosd dword es:[edi], eax
mov edx, dword [ebp + 0x1a4]
push edx
call fcn.0042d16c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ebp + 0x1a4], eax
mov dword [ebp + 0x1a8], esi
mov dword [ebp + 0x1ac], ecx
mov edx, dword [ebp + 0x1a4]
mov eax, dword [esp + 0x18]
mov dword [edx + eax*4], ebx
mov ecx, dword [ebp + 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4