Function at 0x41d1b0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x444fc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x30]
xor eax, eax
push esi
mov esi, ecx
mov ax, word [ebp + 8]
push edi
mov dword [esp + 0x14], esi
lea ecx, [eax + eax*2]
lea ecx, [eax + ecx*4]
shl ecx, 5
sub ecx, eax
lea edx, [ecx + ecx*4]
lea ecx, [eax + edx*2]
mov edx, dword [ebp + 0xc]
add eax, 0xfffff
mov ecx, dword [ecx + edx - 0x1004]
shl eax, 0xc
add eax, ecx
push eax
call sub.MFC42.DLL_operatornew
mov edi, eax
xor eax, eax
mov dword [esp + 0x1d], eax
xor ebx, ebx
mov dword [esp + 0x21], eax
add esp, 4
cmp word [ebp + 8], bx
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov dword [esp + 0x38], edi
mov byte [esp + 0x18], 0
mov byte [esp + 0x27], al
mov dword [esp + 0x10], eax
jbe 0x41d289
mov esi, dword [ebp + 0xc]
and eax, 0xffff
add edi, ebx
lea ecx, [eax + eax*2]
lea ecx, [eax + ecx*4]
shl ecx, 5
sub ecx, eax
lea edx, [ecx + ecx*4]
lea eax, [eax + edx*2]
mov ecx, dword [eax + esi + 0x33]
lea esi, [eax + esi + 0x37]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
mov edi, dword [eax + esi + 0x33]
mov eax, dword [esp + 0x10]
add ebx, edi
mov edi, dword [esp + 0x38]
inc eax
cmp ax, word [ebp + 8]
mov dword [esp + 0x10], eax
jb 0x41d23b
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0041d0e0
mov eax, dword [esi + 0x1ac]
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push edi
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x40], 0
call fcn.00425730
push ebx
push edi
call fcn.00423b50
add esp, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
cmp dword [ecx + 0x28], edx
je 0x41d31b
push str.ResetSendDataEncrpy_Crc_Fail__
push 0
push 0x3ef
push 0
push 0x138d
call fcn.00417e80
push edi
call sub.MFC42.DLL_operatordelete
add esp, 0x18
or eax, 0xffffffff
jmp 0x41d3cc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0041d0e0
mov esi, dword [esi + 0x1ac]
push esi
mov dword [esp + 0x40], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
push edi
lea edx, [esp + 0x20]
push 1
push edx
mov dword [esp + 0x40], 1
call fcn.00425730
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
xor edx, edx
cmp word [ebp + 8], bx
jbe 0x41d3c1
mov eax, ebx
lea esi, [edx + edi]
and eax, 0xffff
lea ecx, [eax + eax*2]
lea ecx, [eax + ecx*4]
shl ecx, 5
sub ecx, eax
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x3c], eax
add eax, ecx
mov ecx, dword [eax + 0x33]
lea edi, [eax + 0x37]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov edi, dword [eax + ecx + 0x33]
lea esi, [eax + ecx]
mov cl, byte [esp + 0x40]
add edx, edi
mov edi, dword [esp + 0x38]
inc ebx
mov byte [esi + 0x2f], cl
cmp bx, word [ebp + 8]
jb 0x41d367
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc