Function at 0x40b140
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40d541
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebp + 8]
mov ebx, dword [esp + 0x28]
xor edi, edi
cmp ebx, ecx
mov dword [esp + 0x20], edi
jl 0x40b2ed
inc ebx
cmp ebx, edi
jne 0x40b1b1
mov esi, dword [ebp + 4]
cmp esi, edi
je 0x40b1a6
mov eax, ecx
dec ecx
test eax, eax
je 0x40b197
lea ebx, [ecx + 1]
push edi
mov ecx, esi
call fcn.00404d10
add esi, 0x18
dec ebx
jne 0x40b189
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x40b2ed
mov eax, dword [ebp + 4]
cmp eax, edi
jne 0x40b214
lea edi, [ebx + ebx*2]
shl edi, 3
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 4], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x40b1fa
mov ecx, esi
call fcn.0040b390
add esi, 0x18
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x40b1e6
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x40b2ed
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x40b251
cmp ecx, ebx
jge 0x40b238
mov edx, ebx
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*8]
push edx
call fcn.00404da0
mov dword [ebp + 8], ebx
jmp 0x40b2ed
jle 0x40b249
sub ecx, ebx
push ecx
lea ecx, [ebx + ebx*2]
lea edx, [eax + ecx*8]
push edx
call fcn.00404ce0
mov dword [ebp + 8], ebx
jmp 0x40b2ed
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x40b27b
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x40b26f
mov eax, 4
jmp 0x40b27b
cmp eax, 0x400
jle 0x40b27b
mov eax, 0x400
add eax, esi
cmp ebx, eax
jge 0x40b287
mov dword [esp + 0x10], eax
jmp 0x40b28d
mov dword [esp + 0x10], ebx
mov eax, ebx
lea eax, [eax + eax*2]
shl eax, 3
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*2]
mov dword [esp + 0x14], eax
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
sub edx, ecx
lea ecx, [ecx + ecx*2]
push edx
lea edx, [eax + ecx*8]
push edx
call fcn.00404da0
mov eax, dword [ebp + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], eax
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ecx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [eax + eax*2]
mov eax, dword [ebp + 4]
lea esi, [eax + edx*8]
mov ecx, esi
call fcn.0040b57c
lea edx, [esp + 0x30]
lea ecx, [esi + 4]
push edx
call fcn.0040b57c
lea eax, [esp + 0x34]
lea ecx, [esi + 8]
push eax
call fcn.0040b57c
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x40]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], edx
call fcn.0040b57c
lea ecx, [esp + 0x40]
mov dword [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x1c