Function at 0x41faa0
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 0x41fabe
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.0041ff80
xor edi, edi
mov dword [esp + 0x28], edi
mov esi, 2
sub esi, edi
test esi, esi
jle 0x41fb4b
call fcn.0042c1b4
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 0x41fb05
test eax, eax
je 0x41fbf5
add edi, eax
jmp 0x41fad0
mov ecx, ebp
call fcn.004200e0
test eax, eax
je 0x41fb1f
pop edi
pop esi
pop ebp
mov eax, 0xffffd8ec
pop ebx
add esp, 0x14
ret 4
call fcn.0042c1b4
sub eax, ebx
cmp eax, 1
jl 0x41fbf5
mov ecx, ebp
call fcn.00420080
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.0041298a
mov dword [ebp + 0x148], eax
mov eax, dword [esp + 0x2c]
add eax, 2
push eax
call fcn.0042d3e3
add esp, 8
mov ebx, eax
xor edi, edi
mov eax, dword [esp + 0x28]
mov esi, eax
sub esi, edi
test esi, esi
jle 0x41fc04
call fcn.0042c1b4
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 0x41fba4
test eax, eax
je 0x41fbec
add edi, eax
jmp 0x41fb6c
push ebx
call fcn.0042d40c
add esp, 4
mov ecx, ebp
call fcn.004200e0
test eax, eax
je 0x41fbc7
pop edi
pop esi
pop ebp
mov eax, 0xffffd8ec
pop ebx
add esp, 0x14
ret 4
call fcn.0042c1b4
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.0042d40c
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 0x41fcb3
movsx edx, word [ebx + 6]
add edx, 2
push edx
call fcn.0042d3e3
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.004219f0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x41fc70
push 0
push 0x44b644
jmp 0x41fc82
movsx ecx, word [ebx + 6]
sub ecx, 0x18
cmp eax, ecx
je 0x41fc99
push 0
push 0x44b63c
push 0x44b3d0
push 0
call fcn.0041f260
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.0042d40c
add esp, 4
mov ebx, esi
cmp word [ebx + 0xe], 0
jne 0x41fcd2
push ebx
call fcn.0042d40c
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 0x41fd20
cmp eax, edi
je 0x41fd0f
push eax
call fcn.0042d40c
add esp, 4
mov dword [ebp + 0x1a4], edi
mov dword [ebp + 0x1ac], edi
mov dword [ebp + 0x1a8], edi
jmp 0x41fe35
cmp eax, edi
jne 0x41fd61
lea edi, [esi*4]
push edi
call fcn.0042d3e3
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 0x41fe35
mov ecx, dword [ebp + 0x1ac]
cmp esi, ecx
jg 0x41fd85
cmp esi, edx
jle 0x41fd7a
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 0x41fe35
mov eax, dword [ebp + 0x1b0]
cmp eax, edi
jne 0x41fdb2
mov eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x41fda6
mov eax, 4
jmp 0x41fdb2
cmp eax, 0x400
jle 0x41fdb2
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x41fdc0
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
push ecx
call fcn.0042d3e3
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.0042d40c
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