Function at 0x420c90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x21585055
push ebx
push edi
mov esi, ecx
call fcn.0045a180
mov ecx, eax
add esp, 0xc
mov dword [ebp + 0xc], ecx
test ecx, ecx
jns 0x420cbf
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
lea eax, [ecx + 8]
test eax, eax
jle 0x420cca
cmp eax, ebx
jle 0x420cda
push str.header_corrupted_1
call fcn.0040dd10
mov ecx, dword [ebp + 0xc]
add esp, 4
movzx eax, byte [edi + ecx + 4]
add edi, ecx
mov dword [esi], eax
movzx ecx, byte [edi + 5]
mov dword [esi + 4], ecx
movzx edx, byte [edi + 6]
mov dword [esi + 8], edx
movzx eax, byte [edi + 7]
mov ecx, esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x28], 0
call fcn.00420950
mov dword [ebp + 8], eax
add eax, dword [ebp + 0xc]
test eax, eax
jle 0x420d14
cmp eax, ebx
jle 0x420d21
push str.header_corrupted_2
call fcn.0040dd10
add esp, 4
cmp dword [esi + 4], 0x80
jge 0x420dd2
mov edx, dword [edi + 8]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
cmp eax, 1
je 0x420db1
cmp eax, 2
je 0x420db1
cmp eax, 3
je 0x420d83
cmp eax, 7
je 0x420d83
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x20], eax
movzx edx, byte [edi + 0x1d]
mov dword [esi + 0x28], edx
mov al, byte [edi + 0x1e]
mov ecx, 0x1c
test al, al
je 0x420e2a
movzx eax, al
inc eax
jmp 0x420e2c
lea eax, [edi + 0x10]
push eax
call fcn.00459910
mov dword [esi + 0x10], eax
lea eax, [edi + 0x13]
push eax
call fcn.00459910
lea ecx, [edi + 0x16]
push ecx
mov dword [esi + 0x14], eax
call fcn.00459910
add esp, 0xc
mov dword [esi + 0x20], eax
mov ecx, 0x19
jmp 0x420e2f
mov dx, word [edi + 0x10]
movzx eax, dx
mov dword [esi + 0x10], eax
mov cx, word [edi + 0x12]
mov eax, dword [esi + 0x10]
movzx edx, cx
mov dword [esi + 0x14], edx
mov dword [esi + 0x20], eax
mov ecx, 0x14
jmp 0x420e2f
lea eax, [edi + 8]
push eax
call fcn.00459870
mov dword [esi + 0x10], eax
lea eax, [edi + 0xc]
push eax
call fcn.00459870
mov dword [esi + 0x14], eax
lea eax, [edi + 0x10]
push eax
call fcn.00459870
mov dword [esi + 0x18], eax
lea eax, [edi + 0x14]
push eax
call fcn.00459870
mov dword [esi + 0x1c], eax
lea eax, [edi + 0x18]
push eax
call fcn.00459870
mov dword [esi + 0x20], eax
movzx edx, byte [edi + 0x1d]
mov dword [esi + 0x28], edx
mov al, byte [edi + 0x1e]
add esp, 0x14
mov ecx, 0x1c
test al, al
je 0x420e2a
movzx eax, al
inc eax
jmp 0x420e2c
xor eax, eax
mov dword [esi + 0x2c], eax
mov edx, dword [esi]
cmp edx, 0xa
jl 0x420e3f
movzx eax, byte [ecx + edi]
mov dword [esi + 0x24], eax
jmp 0x420e72
mov eax, dword [esi + 0xc]
test al, al
js 0x420e4f
mov dword [esi + 0x24], 0
jmp 0x420e72
and eax, 0x7f
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
cmp eax, 1
je 0x420e6b
cmp eax, 2
je 0x420e6b
mov dword [esi + 0x24], 0x26
jmp 0x420e72
mov dword [esi + 0x24], 6
and dword [esi + 0xc], 0xf
cmp edx, 0xff
jne 0x420e8b
push str.cannot_unpack_UPX____
call fcn.0040dd10
add esp, 4
cmp dword [esi], 9
jle 0x420eb1
mov eax, dword [ebp + 8]
dec eax
mov ecx, edi
call fcn.004208f0
mov ecx, dword [ebp + 8]
cmp byte [ecx + edi - 1], al
je 0x420eb1
push str.header_corrupted_3
call fcn.0040dd10
add esp, 4
mov edx, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x3c], edx
pop esi
mov al, 1
pop ebx
pop ebp
ret 8