Function at 0x42aac0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x54
push esi
mov esi, ecx
mov ecx, dword [0x477ab0]
cmp ecx, 2
mov dword [esp + 0x24], esi
je 0x42aae6
cmp ecx, 3
je 0x42aae6
cmp ecx, 4
je 0x42aae6
xor eax, eax
pop esi
add esp, 0x54
ret
mov eax, dword [esi + 0x10]
cdq
idiv ecx
push ebx
push ebp
push edi
push 0x20
mov edi, eax
mov eax, dword [esi + 0xc]
cdq
idiv ecx
push edi
push eax
call fcn.00428c50
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
push 0x18
push eax
mov dword [esp + 0x48], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov ebp, dword [esi + 0x2c]
lea ebx, [eax - 1]
lea edi, [eax - 2]
imul ebx, ecx
lea edx, [eax - 3]
imul edi, ecx
add eax, 0xfffffffc
imul edx, ecx
imul eax, ecx
mov ecx, dword [esp + 0x54]
add ebx, ebp
add edi, ebp
add edx, ebp
add eax, ebp
lea ebp, [ecx - 1]
imul ebp, dword [esp + 0x58]
add ebp, dword [esp + 0x60]
cmp dword [0x477ab0], 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
jne 0x42ac6d
test ecx, ecx
mov dword [esp + 0x28], 0
jle 0x42b0fb
nop
mov eax, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x2c], 0
jle 0x42ac3f
lea ecx, [edi + 1]
lea esi, [ebp + 2]
lea eax, [ebx + 4]
sub edi, ebx
nop
movzx ebp, byte [eax - 4]
movzx edx, byte [edi + eax]
add edx, ebp
movzx ebp, byte [ecx - 1]
add edx, ebp
movzx ebp, byte [eax]
add edx, ebp
shr edx, 2
mov byte [esi - 2], dl
movzx ebp, byte [eax + 1]
movzx edx, byte [eax - 3]
add edx, ebp
movzx ebp, byte [ecx + 4]
add edx, ebp
movzx ebp, byte [ecx]
add edx, ebp
shr edx, 2
mov byte [esi - 1], dl
movzx ebp, byte [eax + 2]
movzx edx, byte [eax - 2]
add edx, ebp
movzx ebp, byte [ecx + 5]
add edx, ebp
movzx ebp, byte [ecx + 1]
add edx, ebp
shr edx, 2
mov byte [esi], dl
movzx ebp, byte [eax - 1]
movzx edx, byte [eax + 3]
add edx, ebp
movzx ebp, byte [ecx + 6]
add edx, ebp
movzx ebp, byte [ecx + 2]
add edx, ebp
shr edx, 2
mov byte [esi + 1], dl
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x50]
inc edx
add eax, 8
add ecx, 8
add esi, 4
cmp edx, ebp
mov dword [esp + 0x2c], edx
jl 0x42aba0
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x24]
shl eax, 1
sub edi, eax
sub ebx, eax
sub ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], eax
jl 0x42ab80
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
cmp dword [0x477ab0], 3
jne 0x42ae41
test ecx, ecx
mov dword [esp + 0x34], 0
jle 0x42b0fb
lea ebx, [ebx]
mov eax, dword [esp + 0x50]
test eax, eax
mov dword [esp + 0x14], 0
jle 0x42ae0c
mov eax, dword [esp + 0x10]
sub eax, edx
mov dword [esp + 0x2c], eax
mov eax, ebx
sub eax, edx
lea ecx, [edx + 4]
mov edx, dword [esp + 0x10]
add ebp, 2
add edi, 5
sub edx, ebx
lea esi, [ebx + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
jmp 0x42acd6
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
movzx edx, byte [edx + esi]
movzx eax, byte [eax + ecx]
add edx, eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + ecx]
add edx, eax
movzx eax, byte [ecx - 4]
add edx, eax
movzx eax, byte [ecx + 4]
add edx, eax
movzx eax, byte [esi - 8]
add edx, eax
movzx eax, byte [edi - 5]
add edx, eax
movzx eax, byte [esi]
add edx, eax
movzx eax, byte [ecx]
add edx, eax
mov eax, 0x38e38e39
mul edx
shr edx, 1
mov byte [ebp - 2], dl
movzx eax, byte [ecx - 3]
movzx edx, byte [ecx + 5]
add edx, eax
movzx eax, byte [ecx + 1]
add edx, eax
movzx eax, byte [esi - 7]
add edx, eax
movzx eax, byte [esi - 3]
add edx, eax
movzx eax, byte [esi + 1]
add edx, eax
movzx eax, byte [edi - 4]
add edx, eax
movzx eax, byte [edi + 4]
add edx, eax
movzx eax, byte [edi]
add edx, eax
mov eax, 0x38e38e39
mul edx
shr edx, 1
mov byte [ebp - 1], dl
movzx eax, byte [ecx - 2]
movzx edx, byte [ecx + 6]
add edx, eax
movzx eax, byte [ecx + 2]
add edx, eax
movzx eax, byte [esi - 6]
add edx, eax
movzx eax, byte [esi - 2]
add edx, eax
movzx eax, byte [esi + 2]
add edx, eax
movzx eax, byte [edi + 5]
add edx, eax
movzx eax, byte [edi - 3]
add edx, eax
movzx eax, byte [edi + 1]
add edx, eax
mov eax, 0x38e38e39
mul edx
shr edx, 1
mov byte [ebp], dl
movzx eax, byte [ecx + 3]
movzx edx, byte [ecx + 7]
add edx, eax
movzx eax, byte [ecx - 1]
add edx, eax
movzx eax, byte [esi - 5]
add edx, eax
movzx eax, byte [esi + 3]
add edx, eax
movzx eax, byte [esi - 1]
add edx, eax
movzx eax, byte [edi + 6]
add edx, eax
movzx eax, byte [edi - 2]
add edx, eax
movzx eax, byte [edi + 2]
add edx, eax
mov eax, 0x38e38e39
mul edx
mov eax, dword [esp + 0x14]
shr edx, 1
mov byte [ebp + 1], dl
mov edx, dword [esp + 0x50]
inc eax
add esi, 0xc
add edi, 0xc
add ecx, 0xc
add ebp, 4
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x42acce
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x24]
lea eax, [eax + eax*2]
sub edi, eax
sub edx, eax
sub ebx, eax
sub ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], eax
jl 0x42ac90
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ebx
cmp dword [0x477ab0], 4
jne 0x42b0fb
test ecx, ecx
mov dword [esp + 0x38], 0
jle 0x42b0fb
jmp 0x42ae70
mov eax, dword [esp + 0x1c]
jmp 0x42ae70
mov ecx, dword [esp + 0x50]
test ecx, ecx
mov dword [esp + 0x34], 0
jle 0x42b0bc
lea esi, [ebx + 0xc]
mov ebx, dword [esp + 0x1c]
lea ecx, [edx + 4]
sub edx, ebx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x10]
sub edx, ebx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x14]
sub edx, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x18]
sub ebx, edx
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x14]
sub ebx, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x14]
add ebp, 2
add edi, 9
add eax, 8
sub edx, ebx
mov dword [esp + 0x24], edx
jmp 0x42aee0
mov edx, dword [esp + 0x40]
movzx edx, byte [eax + edx]
mov ebx, dword [esp + 0x44]
movzx ebx, byte [eax + ebx]
add edx, ebx
mov ebx, dword [esp + 0x48]
movzx ebx, byte [eax + ebx]
add edx, ebx
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx + esi]
add edx, ebx
mov ebx, dword [esp + 0x28]
movzx ebx, byte [ebx + ecx]
add edx, ebx
mov ebx, dword [esp + 0x2c]
movzx ebx, byte [ebx + ecx]
add edx, ebx
movzx ebx, byte [eax - 8]
add edx, ebx
movzx ebx, byte [eax - 4]
add edx, ebx
movzx ebx, byte [eax + 4]
add edx, ebx
movzx ebx, byte [ecx + 8]
add edx, ebx
movzx ebx, byte [ecx - 4]
add edx, ebx
movzx ebx, byte [esi - 0xc]
add edx, ebx
movzx ebx, byte [edi - 9]
add edx, ebx
movzx ebx, byte [eax]
add edx, ebx
movzx ebx, byte [ecx]
add edx, ebx
movzx ebx, byte [esi]
add edx, ebx
shr edx, 4
mov byte [ebp - 2], dl
movzx ebx, byte [eax + 5]
movzx edx, byte [eax - 7]
add edx, ebx
movzx ebx, byte [eax - 3]
add edx, ebx
movzx ebx, byte [eax + 1]
add edx, ebx
movzx ebx, byte [ecx + 9]
add edx, ebx
movzx ebx, byte [ecx + 5]
add edx, ebx
movzx ebx, byte [ecx - 3]
add edx, ebx
movzx ebx, byte [ecx + 1]
add edx, ebx
movzx ebx, byte [esi - 0xb]
add edx, ebx
movzx ebx, byte [esi - 7]
add edx, ebx
movzx ebx, byte [esi - 3]
add edx, ebx
movzx ebx, byte [esi + 1]
add edx, ebx
movzx ebx, byte [edi - 8]
add edx, ebx
movzx ebx, byte [edi - 4]
add edx, ebx
movzx ebx, byte [edi + 4]
add edx, ebx
movzx ebx, byte [edi]
add edx, ebx
shr edx, 4
mov byte [ebp - 1], dl
movzx ebx, byte [eax + 6]
movzx edx, byte [eax - 6]
add edx, ebx
movzx ebx, byte [eax - 2]
add edx, ebx
movzx ebx, byte [eax + 2]
add edx, ebx
movzx ebx, byte [ecx + 0xa]
add edx, ebx
movzx ebx, byte [ecx + 6]
add edx, ebx
movzx ebx, byte [ecx - 2]
add edx, ebx
movzx ebx, byte [ecx + 2]
add edx, ebx
movzx ebx, byte [esi - 0xa]
add edx, ebx
movzx ebx, byte [esi - 6]
add edx, ebx
movzx ebx, byte [esi - 2]
add edx, ebx
movzx ebx, byte [esi + 2]
add edx, ebx
movzx ebx, byte [edi - 7]
add edx, ebx
movzx ebx, byte [edi + 5]
add edx, ebx
movzx ebx, byte [edi - 3]
add edx, ebx
movzx ebx, byte [edi + 1]
add edx, ebx
shr edx, 4
mov byte [ebp], dl
movzx ebx, byte [eax - 5]
movzx edx, byte [eax + 7]
add edx, ebx
movzx ebx, byte [eax + 3]
add edx, ebx
movzx ebx, byte [eax - 1]
add edx, ebx
movzx ebx, byte [ecx + 0xb]
add edx, ebx
movzx ebx, byte [ecx + 7]
add edx, ebx
movzx ebx, byte [ecx + 3]
add edx, ebx
movzx ebx, byte [ecx - 1]
add edx, ebx
movzx ebx, byte [esi - 9]
add edx, ebx
movzx ebx, byte [esi - 5]
add edx, ebx
movzx ebx, byte [esi + 3]
add edx, ebx
movzx ebx, byte [esi - 1]
add edx, ebx
movzx ebx, byte [edi - 6]
add edx, ebx
movzx ebx, byte [edi + 6]
add edx, ebx
movzx ebx, byte [edi - 2]
add edx, ebx
movzx ebx, byte [edi + 2]
add edx, ebx
shr edx, 4
mov byte [ebp + 1], dl
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
inc edx
add esi, 0x10
add edi, 0x10
add ecx, 0x10
add eax, 0x10
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x34], edx
jl 0x42aee0
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x1c]
shl eax, 2
sub ecx, eax
sub ebx, eax
sub edi, eax
sub edx, eax
sub ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], eax
jl 0x42ae60
mov eax, dword [esi + 0x54]
test eax, eax
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
jne 0x42b114
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x50]
push eax
push ecx
call edi
jmp 0x42b11b
mov ecx, esi
call fcn.00427af0
mov edx, dword [esi + 0x30]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x54]
xor ebx, ebx
cmp eax, ebx
jne 0x42b13c
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x50]
push eax
push ecx
call edi
mov dword [esi + 0x34], eax
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x50]
lea eax, [esi + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [esi + 0xc]
cdq
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], 1
idiv dword [0x477ab0]
pop edi
pop ebp
pop ebx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
cdq
idiv dword [0x477ab0]
mov dword [esi + 0x10], eax
mov eax, 1
pop esi
add esp, 0x54
ret