Function at 0x43c690
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
push 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], 0
mov esi, dword [edi + 0x3c]
add esi, edi
movzx eax, word [esi + 6]
add eax, 4
mov dword [ebp - 0x10], eax
lea eax, [eax*8 + 8]
push eax
call fcn.0049570f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x43c8d5
mov eax, dword [ebp - 0x10]
mov ecx, 0x20b
mov dword [ebx], eax
movzx eax, word [esi + 0x18]
cmp ax, cx
jne 0x43c740
push ecx
lea eax, [esi + 0x58]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0043c590
add esp, 8
lea edx, [esi + 0x5c]
cmp dword [esi + 0x84], 4
push ecx
mov ecx, ebx
ja 0x43c716
mov eax, dword [esi + 0x54]
add eax, edi
push eax
call fcn.0043c590
jmp 0x43c7a3
lea eax, [esi + 0xa8]
push eax
call fcn.0043c590
mov eax, dword [esi + 0x54]
lea edx, [esi + 0xb0]
add esp, 4
add eax, edi
mov ecx, ebx
push eax
call fcn.0043c590
mov eax, dword [esi + 0xac]
jmp 0x43c7a0
mov ecx, 0x10b
cmp ax, cx
jne 0x43c8c2
push ecx
lea eax, [esi + 0x58]
mov edx, edi
push eax
mov ecx, ebx
call fcn.0043c590
add esp, 8
lea edx, [esi + 0x5c]
cmp dword [esi + 0x74], 4
push ecx
mov ecx, ebx
ja 0x43c778
mov eax, dword [esi + 0x54]
add eax, edi
push eax
call fcn.0043c590
jmp 0x43c7a3
lea eax, [esi + 0x98]
push eax
call fcn.0043c590
mov eax, dword [esi + 0x54]
lea edx, [esi + 0xa0]
add esp, 4
add eax, edi
mov ecx, ebx
push eax
call fcn.0043c590
mov eax, dword [esi + 0x9c]
mov dword [ebp - 0xc], eax
movzx edi, word [esi + 6]
mov eax, esi
mov ecx, 0x3c
mov dword [ebp - 0x10], edi
add esp, 8
mov eax, dword [ecx + eax]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], eax
movzx eax, word [esi + 0x14]
add esi, 0x18
push edi
push 4
add esi, eax
call fcn.0049570f
mov ecx, eax
add esp, 8
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x43c801
push str.efi_image_parse
push str._s:_Out_of_memory
call fcn.004407e0
add esp, 8
push ebx
call fcn.004998ec
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
je 0x43c86d
mov dword [ecx + eax*4], esi
inc eax
add esi, 0x28
cmp eax, edi
jl 0x43c807
push 0x43c660
push 4
push edi
push ecx
call fcn.004a4210
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov ecx, dword [ebp - 8]
xor edi, edi
jmp 0x43c830
mov edx, dword [ecx + edi*4]
mov esi, dword [edx + 0x10]
test esi, esi
je 0x43c866
mov eax, dword [ebp - 0x18]
dec esi
mov ecx, dword [edx + 0x14]
add esi, eax
mov edx, dword [ebp - 0x14]
neg eax
and esi, eax
push ecx
lea eax, [ecx + esi]
add eax, edx
add edx, ecx
push eax
mov ecx, ebx
call fcn.0043c590
mov eax, dword [ebp - 0x10]
add esp, 8
add dword [ebp - 4], esi
mov ecx, dword [ebp - 8]
inc edi
cmp edi, eax
jl 0x43c830
jmp 0x43c87e
push 0x43c660
push 4
push edi
push ecx
call fcn.004a4210
add esp, 0x10
push dword [ebp - 8]
mov esi, dword [ebp - 4]
call fcn.004998ec
mov edx, dword [ebp - 0xc]
add esp, 4
mov edi, dword [ebp - 0x1c]
lea eax, [esi + edx]
cmp eax, edi
jae 0x43c8b1
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, ecx
sub eax, edx
add eax, edi
push eax
lea edx, [esi + ecx]
mov ecx, ebx
call fcn.0043c590
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.efi_image_parse
push str._s:_Invalid_optional_header_magic__x
call fcn.004407e0
add esp, 0xc
push ebx
call fcn.004998ec
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret