Function at 0x41fc70
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.00459190
mov ecx, eax
add esp, 0xc
mov dword [ebp + 0xc], ecx
test ecx, ecx
jns 0x41fc9f
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
lea eax, [ecx + 8]
test eax, eax
jle 0x41fcaa
cmp eax, ebx
jle 0x41fcba
push str.header_corrupted_1
call fcn.0040cd00
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.0041f930
mov dword [ebp + 8], eax
add eax, dword [ebp + 0xc]
test eax, eax
jle 0x41fcf4
cmp eax, ebx
jle 0x41fd01
push str.header_corrupted_2
call fcn.0040cd00
add esp, 4
cmp dword [esi + 4], 0x80
jge 0x41fdb2
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 0x41fd91
cmp eax, 2
je 0x41fd91
cmp eax, 3
je 0x41fd63
cmp eax, 7
je 0x41fd63
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 0x41fe0a
movzx eax, al
inc eax
jmp 0x41fe0c
lea eax, [edi + 0x10]
push eax
call fcn.00458910
mov dword [esi + 0x10], eax
lea eax, [edi + 0x13]
push eax
call fcn.00458910
lea ecx, [edi + 0x16]
push ecx
mov dword [esi + 0x14], eax
call fcn.00458910
add esp, 0xc
mov dword [esi + 0x20], eax
mov ecx, 0x19
jmp 0x41fe0f
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 0x41fe0f
lea eax, [edi + 8]
push eax
call fcn.00458870
mov dword [esi + 0x10], eax
lea eax, [edi + 0xc]
push eax
call fcn.00458870
mov dword [esi + 0x14], eax
lea eax, [edi + 0x10]
push eax
call fcn.00458870
mov dword [esi + 0x18], eax
lea eax, [edi + 0x14]
push eax
call fcn.00458870
mov dword [esi + 0x1c], eax
lea eax, [edi + 0x18]
push eax
call fcn.00458870
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 0x41fe0a
movzx eax, al
inc eax
jmp 0x41fe0c
xor eax, eax
mov dword [esi + 0x2c], eax
mov edx, dword [esi]
cmp edx, 0xa
jl 0x41fe1f
movzx eax, byte [ecx + edi]
mov dword [esi + 0x24], eax
jmp 0x41fe52
mov eax, dword [esi + 0xc]
test al, al
js 0x41fe2f
mov dword [esi + 0x24], 0
jmp 0x41fe52
and eax, 0x7f
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
cmp eax, 1
je 0x41fe4b
cmp eax, 2
je 0x41fe4b
mov dword [esi + 0x24], 0x26
jmp 0x41fe52
mov dword [esi + 0x24], 6
and dword [esi + 0xc], 0xf
cmp edx, 0xff
jne 0x41fe6b
push str.cannot_unpack_UPX____
call fcn.0040cd00
add esp, 4
cmp dword [esi], 9
jle 0x41fe91
mov eax, dword [ebp + 8]
dec eax
mov ecx, edi
call fcn.0041f8d0
mov ecx, dword [ebp + 8]
cmp byte [ecx + edi - 1], al
je 0x41fe91
push str.header_corrupted_3
call fcn.0040cd00
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