Function at 0x41cc2b
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x4a1d78]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
xor eax, eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, 3
push esi
sete al
xor edx, edx
mov dword [esp + 0x2c], eax
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x41cc75
cmp ecx, 2
je 0x41cc75
mov dword [esp + 0x1c], edx
test eax, eax
je 0x41cc7d
mov dword [esp + 0x1c], 1
cmp dword [ebx + 4], edx
jne 0x41cc8e
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x41cc9d
jmp 0x41cf27
cmp dword [ebx + 0x30], edx
jne 0x41cc82
push edx
mov ecx, ebx
call fcn.0041e020
jmp 0x41cc82
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
and dword [esp + 0x28], 0
mov esi, eax
mov eax, dword [ebx + 0x38]
mov ecx, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], esi
call fcn.0042c471
movzx eax, ax
add eax, dword [esi]
cmp dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
je 0x41cdc0
push 0x28
pop edx
cmp dword [esi], edx
jae 0x41cd7d
xor eax, eax
lea edi, [esp + 0x48]
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov dword [esp + 0x48], edx
mov ecx, esi
movzx eax, word [esi + 4]
xor edx, edx
mov dword [esp + 0x4c], eax
inc edx
movzx eax, word [esi + 6]
mov dword [esp + 0x50], eax
mov ax, word [esi + 8]
mov word [esp + 0x54], ax
mov ax, word [esi + 0xa]
and dword [esp + 0x58], 0
mov word [esp + 0x56], ax
call fcn.0042c42f
movzx ecx, ax
sub ecx, edx
js 0x41cd5e
imul edx, ecx, 3
add edx, 0xd
add edx, esi
mov al, byte [edx - 1]
mov byte [esp + ecx*4 + 0x70], al
mov al, byte [edx]
lea edx, [edx - 3]
mov byte [esp + ecx*4 + 0x71], al
mov al, byte [edx + 4]
mov byte [esp + ecx*4 + 0x72], al
mov byte [esp + ecx*4 + 0x73], 0
sub ecx, 1
jns 0x41cd37
mov esi, dword [esp + 0x48]
jmp 0x41cd61
push 0x28
pop esi
lea eax, [esp + 0x48]
mov ecx, eax
mov dword [esp + 0x20], eax
call fcn.0042c471
mov edi, dword [esp + 0x14]
movzx eax, ax
add eax, esi
mov dword [esp + 0x24], eax
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
add ecx, eax
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ecx
je 0x41cda8
lea eax, [ecx + 0x2d]
mov dword [esp + 0x28], 0xe
and eax, 0xffffffe0
mov dword [esp + 0x10], eax
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push 4
push ecx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
cmp dword [esp + 0x1c], 0
je 0x41ce13
mov esi, dword [esp + 0x20]
mov eax, 0x4d42
mov word [esp + 0x38], ax
mov ecx, esi
mov eax, dword [esp + 0x18]
add eax, 0xe
mov dword [esp + 0x3a], eax
xor eax, eax
mov dword [esp + 0x3e], eax
call fcn.0042c471
movzx ecx, ax
mov eax, dword [esi]
add eax, 0xe
add eax, ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x42], eax
mov eax, dword [edi]
push 0xe
push ecx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
mov ecx, dword [esp + 0x14]
mov edi, eax
sub eax, dword [esp + 0x28]
add eax, dword [esp + 0x10]
push eax
mov ecx, dword [ecx]
mov esi, dword [ecx + 0x34]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, dword [esp + 0x18]
call esi
mov ecx, dword [esp + 0x14]
push 0
push edi
mov eax, dword [ecx]
mov esi, dword [eax + 0x30]
mov ecx, esi
call dword [0x4a60bc]
mov edi, dword [esp + 0x1c]
mov ecx, edi
call esi
mov eax, dword [edi]
push dword [esp + 0x24]
push dword [esp + 0x24]
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x24]
mov esi, dword [edi]
push eax
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x40]
push eax
call dword [0x4a60bc]
mov ecx, edi
call dword [esi + 0x40]
mov ecx, dword [esp + 0x10]
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jbe 0x41cf06
mov esi, dword [edi]
xor edx, edx
sub ecx, eax
mov dword [esp + 0x474], edx
push ecx
lea eax, [esp + 0x478]
mov dword [esp + 0x47c], edx
mov ecx, dword [esi + 0x40]
push eax
mov dword [esp + 0x484], edx
mov dword [esp + 0x488], edx
mov dword [esp + 0x48c], edx
mov dword [esp + 0x490], edx
mov dword [esp + 0x494], edx
mov dword [esp + 0x498], edx
call dword [0x4a60bc]
mov ecx, edi
call dword [esi + 0x40]
and dword [ebx + 0x2c], 0
mov edx, dword [edi]
mov esi, dword [edx + 0x50]
mov ecx, esi
call dword [0x4a60bc]
mov ecx, edi
call esi
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x494]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048e170
mov esp, ebp
pop ebp
ret 8