Function at 0x4019f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
cmp dword [ebx], 0
push ebp
je 0x401c01
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x401c01
cmp dword [ebx + 8], 0
je 0x401c01
mov ecx, dword [ebp + 0x3c]
lea eax, [ecx + eax - 1]
xor edx, edx
div ecx
push esi
mov esi, dword [ebp + 0x38]
push edi
xor edx, edx
mov edi, eax
imul edi, ecx
lea eax, [esi + edi - 1]
div esi
imul eax, esi
mov dword [esp + 0x14], eax
movzx eax, word [ebp + 6]
mov ebp, dword [ebx + 8]
lea edx, [eax + eax*4]
mov eax, dword [ebp + edx*8 - 0x18]
add eax, dword [ebp + edx*8 - 0x14]
lea ebp, [ebp + edx*8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
xor edx, edx
imul eax, ecx
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
mov dword [esp + 0x10], eax
lea eax, [ecx + esi - 1]
div esi
mov edx, dword [ebx + 0x38]
add edx, edi
push edx
push 0x40
mov ebp, eax
imul ebp, esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x401a8b
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [ebx + 4]
movzx eax, word [eax + 6]
mov edx, dword [ebx + 8]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x10]
mov dword [edx + ecx*8 + 0x14], eax
mov ecx, dword [ebx + 4]
movzx eax, word [ecx + 6]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
mov dword [eax + edx*8 + 0xc], ebp
mov ecx, dword [ebx + 4]
movzx eax, word [ecx + 6]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
mov dword [eax + edx*8 + 0x10], edi
mov ecx, dword [ebx + 4]
movzx eax, word [ecx + 6]
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
mov dword [eax + edx*8 + 8], ecx
mov edx, dword [ebx + 4]
movzx eax, word [edx + 6]
mov ecx, dword [ebx + 8]
lea eax, [eax + eax*4]
mov dword [ecx + eax*8 + 0x24], 0xc0000040
mov edx, dword [ebx + 4]
movzx eax, word [edx + 6]
mov edx, dword [ebx + 8]
lea eax, [eax + eax*4]
mov ecx, str..modu
lea esi, [edx + eax*8]
mov al, byte [ecx]
mov byte [esi], al
add ecx, 1
add esi, 1
test al, al
jne 0x401b01
mov eax, dword [ebx + 4]
add word [eax + 6], 1
add dword [ebx + 0x38], edi
mov ecx, ebx
call fcn.00401c10
mov ebp, dword [esp + 0xc]
mov esi, dword [ebx]
mov ecx, 0x10
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 4]
mov dword [ebx], ebp
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov ecx, 0x3e
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [ebx + 4], eax
movzx ecx, word [eax + 6]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 8]
add edx, edx
add edx, edx
add edx, edx
push edx
movzx edx, word [eax + 0x14]
push ecx
lea eax, [edx + eax + 0x18]
push eax
call fcn.00408990
mov eax, dword [ebx + 4]
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor esi, esi
add esp, 0xc
mov dword [ebx + 8], edx
cmp word [eax + 6], si
jbe 0x401be2
xor edi, edi
lea ebp, [ebx + 0xc]
lea esp, [esp]
mov ecx, dword [ebp]
test ecx, ecx
je 0x401bbe
mov edx, dword [ebx + 4]
movzx eax, word [edx + 6]
sub eax, 1
cmp esi, eax
je 0x401bbe
mov edx, dword [ebx + 8]
lea eax, [edi + edx]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
add eax, dword [ebx]
push edx
push ecx
push eax
call fcn.00408990
add esp, 0xc
mov ecx, dword [ebx + 8]
mov edx, dword [edi + ecx + 0x14]
add edx, dword [ebx]
add esi, 1
mov dword [ebp], edx
mov eax, dword [ebx + 4]
movzx ecx, word [eax + 6]
add ebp, 4
add edi, 0x28
cmp esi, ecx
jl 0x401b90
mov ebp, dword [esp + 0xc]
mov edx, dword [ebx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx + 4]
mov dword [ebx + 0x34], ebp
movzx ecx, word [eax + 6]
mov eax, dword [ebx + ecx*4 + 8]
pop edi
pop esi
pop ebp
add esp, 0xc
ret
xor eax, eax
pop ebp
add esp, 0xc
ret