Function at 0x403760
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x144
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x154]
xor eax, eax
xor edx, edx
push edi
mov ax, word [ecx + 6]
mov dx, word [ecx + 4]
imul eax, edx
xor ebx, ebx
push 0x8000
mov dword [esp + 0x28], esi
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x403c5a
mov ecx, 0x2000
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x15c]
add esp, 4
test eax, eax
mov dword [esp + 0x34], eax
mov dword [ecx + 0x1c], eax
jne 0x4037f9
mov edx, dword [esp + 0x18]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 4
mov ecx, dword [esi + 4]
lea edx, [esp + 0x20]
push 1
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
mov eax, 1
and ecx, 0xff
shl eax, cl
lea edi, [ecx + 1]
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], eax
push eax
lea ecx, [eax + 2]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
push eax
mov ecx, esi
call fcn.00403150
test eax, eax
je 0x403c13
jmp 0x40384a
mov edi, dword [esp + 0x14]
cmp ebp, 4
jg 0x4038ed
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4038cf
xor eax, eax
test ebp, ebp
jle 0x403877
mov edx, dword [esp + 0x1c]
lea ecx, [esp + eax + 0x4c]
inc eax
mov dl, byte [ecx + edx]
cmp eax, ebp
mov byte [ecx], dl
jl 0x403861
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x20]
push 1
push edx
mov eax, dword [ecx]
mov dword [esp + 0x24], 0
call dword [eax + 4]
mov eax, dword [esp + 0x20]
test al, al
je 0x4038b7
mov ecx, dword [esi + 4]
and eax, 0xff
push eax
lea eax, [esp + ebp + 0x50]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
and ecx, 0xff
add ebp, ecx
jmp 0x4038bf
mov dword [esp + 0x3c], 1
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 0x10]
test al, al
jne 0x403c13
cmp ebp, 4
jg 0x4038ed
test ebp, ebp
jle 0x403bd1
lea eax, [ebp*8]
sub eax, ebx
cmp edi, eax
ja 0x403bd1
mov edx, 0x20
sub edx, edi
mov edi, dword [esp + 0x1c]
mov ecx, edx
mov eax, dword [esp + edi + 0x4c]
sub ecx, ebx
shl eax, cl
mov ecx, edx
mov edx, dword [esp + 0x44]
shr eax, cl
add ebx, dword [esp + 0x14]
mov ecx, ebx
and ebx, 7
shr ecx, 3
add edi, ecx
sub ebp, ecx
lea ecx, [edx + 1]
mov dword [esp + 0x1c], edi
cmp eax, ecx
jae 0x403c13
cmp eax, edx
je 0x403846
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
inc edi
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + eax*8 + 4]
mov dword [esp + 0x10], edi
mov cl, byte [edx]
mov edx, dword [esp + 0x34]
mov byte [edx + edi - 1], cl
mov edi, dword [esp + 0x14]
jmp 0x40395a
mov esi, dword [esp + 0x24]
cmp ebp, 4
jg 0x4039ff
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x4039e1
xor eax, eax
test ebp, ebp
jle 0x403987
mov edx, dword [esp + 0x1c]
lea ecx, [esp + eax + 0x4c]
inc eax
mov dl, byte [ecx + edx]
cmp eax, ebp
mov byte [ecx], dl
jl 0x403971
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x20]
push 1
push edx
mov eax, dword [ecx]
mov dword [esp + 0x24], 0
call dword [eax + 4]
mov eax, dword [esp + 0x20]
test al, al
je 0x4039c7
mov ecx, dword [esi + 4]
and eax, 0xff
push eax
lea eax, [esp + ebp + 0x50]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
and ecx, 0xff
add ebp, ecx
jmp 0x4039cf
mov dword [esp + 0x3c], 1
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x10]
test al, al
jne 0x403c13
cmp ebp, 4
jg 0x4039ff
test ebp, ebp
jle 0x403bd1
lea eax, [ebp*8]
sub eax, ebx
cmp edi, eax
ja 0x403bd1
mov edx, dword [esp + 0x1c]
mov eax, 0x20
sub eax, edi
mov esi, dword [esp + edx + 0x4c]
mov ecx, eax
sub ecx, ebx
add ebx, edi
shl esi, cl
mov ecx, eax
mov eax, ebx
shr eax, 3
mov edi, edx
sub ebp, eax
shr esi, cl
add edi, eax
and ebx, 7
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x30], ebx
cmp esi, edi
je 0x403b74
lea eax, [edi + 1]
cmp esi, eax
je 0x403bd1
mov edx, dword [esp + 0x18]
mov eax, dword [edx + esi*8 + 4]
mov ecx, dword [edx + esi*8]
test eax, eax
je 0x403ac1
mov dl, byte [eax]
mov edi, dword [esp + 0x40]
mov byte [esp + 0x38], dl
mov edx, dword [esp + 0x10]
add edx, ecx
cmp edx, edi
ja 0x403c13
test ecx, ecx
jle 0x403a8c
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
mov dl, byte [eax]
mov byte [ebx + edi], dl
inc edi
inc eax
dec ecx
mov dword [esp + 0x10], edi
jne 0x403a72
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, ecx
inc ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004031c0
test eax, eax
je 0x403c13
jmp 0x403b48
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov eax, dword [edx + ecx*8 + 4]
mov ecx, dword [edx + ecx*8]
mov dl, byte [eax]
mov byte [esp + 0x38], dl
mov edx, dword [esp + 0x10]
lea edx, [ecx + edx + 1]
cmp edx, edi
ja 0x403c13
test ecx, ecx
jle 0x403b04
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
mov dl, byte [eax]
mov byte [ebx + edi], dl
inc edi
inc eax
dec ecx
mov dword [esp + 0x10], edi
jne 0x403aea
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov cl, byte [esp + 0x38]
mov edi, dword [esp + 0x14]
mov byte [edx + eax], cl
mov ecx, dword [esp + 0x28]
inc eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, ecx
inc ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004031c0
test eax, eax
je 0x403c13
mov eax, dword [esp + 0x28]
mov edx, 1
mov ecx, edi
mov dword [esp + 0x2c], esi
shl edx, cl
cmp eax, edx
jne 0x403956
cmp edi, 0xc
je 0x403956
inc edi
mov dword [esp + 0x14], edi
jmp 0x403956
mov eax, dword [esp + 0x48]
cmp edi, 0x1000
mov dword [esp + 0x14], eax
jge 0x403bc1
mov ecx, dword [esp + 0x18]
mov eax, 0x1000
sub eax, edi
lea esi, [ecx + edi*8 + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
test eax, eax
je 0x403bb3
push eax
call sub.MFC42.DLL_operatordelete
mov dword [esi], 0
add esp, 4
mov dword [esi - 4], 0
mov eax, dword [esp + 0x30]
add esi, 8
dec eax
mov dword [esp + 0x30], eax
jne 0x403b97
mov esi, dword [esp + 0x24]
lea eax, [edi + 2]
mov dword [esp + 0x28], eax
jmp 0x403846
mov ebx, dword [esp + 0x18]
mov edi, 0x1000
lea esi, [ebx + 4]
mov eax, dword [esi]
test eax, eax
je 0x403bf2
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi], 0
add esi, 8
dec edi
jne 0x403bdd
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 4
mov ebx, dword [esp + 0x18]
mov edi, 0x1000
lea esi, [ebx + 4]
mov eax, dword [esi]
test eax, eax
je 0x403c34
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi], 0
add esi, 8
dec edi
jne 0x403c1f
push ebx
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x15c]
mov edx, dword [esi + 0x1c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 8
mov dword [esi + 0x1c], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret 4