Function at 0x4388bb
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x30], edi
mov esi, dword [edi + 4]
lea edx, [edi + 0xc]
mov dword [esp + 0x1c], edx
test esi, esi
jne 0x438768
mov eax, dword [edx]
push ebp
call eax
add esp, 4
test al, al
je 0x438ab5
mov esi, dword [edi + 4]
lea edx, [edi + 0xc]
jmp 0x43876c
mov dword [esp + 0x1c], edx
mov eax, edi
mov eax, dword [eax]
movzx ecx, byte [eax]
lea ebx, [eax + 1]
shl ecx, 8
mov dword [esp + 0x28], ecx
sub esi, 1
jne 0x43879b
mov eax, dword [edx]
push ebp
call eax
add esp, 4
test al, al
je 0x438ab5
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov ecx, dword [esp + 0x28]
movzx eax, byte [ebx]
sub ecx, 2
add ecx, eax
dec esi
inc ebx
test ecx, ecx
jle 0x438a8f
lea ecx, [ecx]
dec ecx
mov dword [esp + 0x28], ecx
test esi, esi
jne 0x4387d2
mov eax, dword [esp + 0x1c]
push ebp
mov eax, dword [eax]
call eax
add esp, 4
test al, al
je 0x438ab5
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov eax, dword [ebp]
dec esi
movzx ecx, byte [ebx]
inc ebx
mov edx, ecx
mov dword [esp + 0x34], ebx
and ecx, 0xf
shr edx, 4
mov dword [eax + 0x14], 0x53
mov eax, dword [ebp]
push 1
push ebp
mov dword [esp + 0x34], edx
mov dword [eax + 0x18], ecx
mov eax, dword [ebp]
mov dword [esp + 0x2c], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp]
mov eax, dword [eax + 4]
call eax
mov ecx, dword [esp + 0x2c]
add esp, 8
cmp ecx, 4
jb 0x438837
mov eax, dword [ebp]
push ebp
mov dword [eax + 0x14], 0x20
mov eax, dword [ebp]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp]
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0x28]
add esp, 4
lea eax, [ecx*4 + 0x90]
add eax, ebp
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x438861
push ebp
call fcn.00436f30
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x20], eax
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
test ecx, ecx
je 0x438880
cmp edx, 0x80
jge 0x438879
sar edx, 1
jmp 0x438889
mov edx, 0x40
jmp 0x4388a1
cmp edx, 0x40
jge 0x43891b
mov edi, dword [esp + 0x20]
mov ecx, 0x20
mov eax, 0x10001
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
lea eax, [edx - 4]
mov dword [esp + 0x24], edx
cmp eax, 0x2d
ja case.0x4388b4.5
movzx eax, byte [eax + 0x438adc]
jmp dword [eax*4 + 0x438ac0]
xor eax, eax
mov dword [esp + 0x18], 0x47aa00
mov dword [esp + 0x14], eax
jmp 0x438940
xor eax, eax
mov dword [esp + 0x18], 0x47a998
mov dword [esp + 0x14], eax
jmp 0x438940
xor eax, eax
mov dword [esp + 0x18], 0x47a918
mov dword [esp + 0x14], eax
jmp 0x438940
xor eax, eax
mov dword [esp + 0x18], 0x47a870
mov dword [esp + 0x14], eax
jmp 0x438940
xor eax, eax
mov dword [esp + 0x18], 0x47a7a0
mov dword [esp + 0x14], eax
jmp 0x438940
xor eax, eax
mov dword [esp + 0x18], 0x47a698
mov dword [esp + 0x14], eax
jmp 0x438940
mov edx, 0x40
mov dword [esp + 0x24], edx
xor eax, eax
mov dword [esp + 0x18], 0x47a558
mov dword [esp + 0x14], eax
test edx, edx
jle 0x4389f4
lea ebx, [ebx]
test ecx, ecx
je 0x4389a1
test esi, esi
jne 0x438961
mov eax, dword [esp + 0x1c]
push ebp
mov eax, dword [eax]
call eax
add esp, 4
test al, al
je 0x438ab5
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov al, byte [ebx]
inc ebx
mov byte [esp + 0x13], al
sub esi, 1
jne 0x43898a
mov eax, dword [esp + 0x1c]
push ebp
mov eax, dword [eax]
call eax
add esp, 4
test al, al
je 0x438ab5
mov ebx, dword [edi]
mov esi, dword [edi + 4]
mov al, byte [esp + 0x13]
movzx ecx, al
dec esi
mov eax, pe_nt_image_headers32
imul ecx, eax
movzx eax, byte [ebx]
add cx, ax
movzx edx, cx
jmp 0x4389c2
test esi, esi
jne 0x4389be
mov eax, dword [esp + 0x1c]
push ebp
mov eax, dword [eax]
call eax
add esp, 4
test al, al
je 0x438ab5
mov ebx, dword [edi]
mov esi, dword [edi + 4]
movzx edx, byte [ebx]
dec esi
mov ecx, dword [esp + 0x14]
inc ebx
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x34], ebx
mov eax, dword [eax + ecx*4]
inc ecx
mov dword [esp + 0x14], ecx
mov word [ebp + eax*2], dx
mov edx, dword [esp + 0x24]
cmp ecx, edx
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
jl 0x438940
mov eax, dword [ebp]
cmp dword [eax + 0x68], 2
jl 0x438a76
mov edi, dword [esp + 0x20]
mov ebx, 8
add edi, 4
lea esp, [esp]
mov ecx, dword [ebp]
movzx eax, word [edi - 4]
push 2
push ebp
mov dword [ecx + 0x18], eax
movzx eax, word [edi - 2]
mov dword [ecx + 0x1c], eax
movzx eax, word [edi]
mov dword [ecx + 0x20], eax
movzx eax, word [edi + 2]
mov dword [ecx + 0x24], eax
movzx eax, word [edi + 4]
mov dword [ecx + 0x28], eax
movzx eax, word [edi + 6]
mov dword [ecx + 0x2c], eax
movzx eax, word [edi + 8]
mov dword [ecx + 0x30], eax
movzx eax, word [edi + 0xa]
mov dword [ecx + 0x34], eax
mov eax, dword [ebp]
mov dword [eax + 0x14], 0x5f
mov eax, dword [ebp]
mov eax, dword [eax + 4]
call eax
add esp, 8
lea edi, [edi + 0x10]
sub ebx, 1
jne 0x438a10
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub ecx, edx
cmp dword [esp + 0x2c], 0
je 0x438a85
sub ecx, edx
test ecx, ecx
jg 0x4387b0
test ecx, ecx
je 0x438aa6
mov eax, dword [ebp]
push ebp
mov dword [eax + 0x14], 0xc
mov eax, dword [ebp]
mov eax, dword [eax]
call eax
add esp, 4
mov dword [edi], ebx
mov al, 1
mov dword [edi + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret