Function at 0x489fe0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov dword [esp], ecx
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 0x40], eax
cmp dword [edx + 0x10], 0
je 0x48a1c2
mov esi, edx
cmp byte [edx + 0x1a], 3
jb 0x48a1c2
lea ebx, [esp + 0x38]
mov eax, dword [esp]
push dword [eax + 8]
push dword [esp + 0x5c]
push ebx
call fcn.004ad190
add esp, 0xc
test al, al
je 0x48a1c2
mov eax, dword [esp]
mov ebp, dword [eax + 8]
mov dword [eax + 8], ebx
push dword [esi + 0x10]
call fcn.0047d740
add esp, 4
cmp al, 2
jne 0x48a10f
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
sub esp, 0x1c
movaps xmm0, xmmword [0x4f7de0]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
lea eax, [esp + 0x50]
mov dword [esp], eax
call fcn.004b1fa0
add esp, 0x1c
movd xmm0, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
movd xmm3, dword [eax]
movd xmm4, dword [eax + 4]
psubw xmm4, xmm3
pcmpeqd xmm1, xmm1
psubw xmm4, xmm1
movdqa xmm2, xmm4
psrlw xmm2, 0xf
paddw xmm2, xmm4
psraw xmm2, 1
paddw xmm2, xmm3
movdqa xmm3, xmm0
psrlw xmm3, 0xf
paddw xmm3, xmm0
psraw xmm3, 1
psubw xmm2, xmm3
movd dword [esp + 0x2c], xmm2
paddw xmm0, xmm1
paddw xmm0, xmm2
movd dword [esp + 0x30], xmm0
lea ebx, [esp + 0xc]
push ebx
call fcn.0047d770
add esp, 4
mov eax, dword [esi + 0x14]
mov dword [esp + 0xc], eax
movzx eax, word [esi + 0x18]
mov word [esp + 0x18], ax
movzx eax, byte [esi + 0x1a]
mov byte [esp + 0x26], al
lea eax, [esp + 0x2c]
push 0
push dword [esi + 0x10]
push eax
push ebx
push dword [esp + 0x10]
call fcn.0047d7c0
jmp 0x48a1b9
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x10]
call fcn.00481530
add esp, 8
cmp al, 1
jne 0x48a19e
mov edi, esi
lea eax, [esp + 0xc]
push eax
call fcn.0047d300
add esp, 4
movzx eax, byte [esi + 2]
movzx ecx, byte [esp + 0x18]
and al, 0xf
and cl, 0xf0
or cl, al
mov byte [esp + 0x18], cl
movzx eax, word [esi + 0x18]
mov word [esp + 0x14], ax
movzx eax, byte [esi + 0x1b]
mov byte [esp + 0x16], al
movzx eax, byte [esi + 0x1a]
mov byte [esp + 0x17], al
cmp byte [esi + 0x1c], 0
mov dword [esp + 4], ebp
je 0x48a1d5
mov dword [esp + 8], edi
mov eax, dword [esp + 0x58]
movzx ecx, word [eax + 2]
mov word [esp + 0x2e], cx
mov ebx, dword [esp + 0x34]
mov edx, ebx
shr edx, 0x15
add edx, ecx
dec edx
mov word [esp + 0x32], dx
movzx eax, word [eax + 6]
cmp cx, ax
jle 0x48a273
mov ebp, dword [esp + 4]
jmp 0x48a1bc
push str.Couldnt_read_the_background_image
push str.draw_bg_img
push 0x18d
push str.....lvgl_srcdraw_swlv_draw_sw_rect.c
push 2
call fcn.004ae560
add esp, 0x14
mov eax, dword [esp]
mov dword [eax + 8], ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004c0e60
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x58]
movzx ecx, word [esi]
movzx eax, word [esi + 4]
sub eax, ecx
lea edx, [eax + 1]
movzx edx, dx
shr edx, 0xf
add eax, edx
inc eax
cwde
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x34]
mov edx, ecx
shr edx, 0xb
and edx, 0x3ff
sub eax, edx
mov word [esp + 0x2c], ax
movzx edx, word [esi + 2]
movzx ebx, word [esi + 6]
sub ebx, edx
lea ebp, [ebx + 1]
movzx ebp, bp
shr ebp, 0xf
add ebx, ebp
inc ebx
movsx ebx, bx
sar ebx, 1
mov ebp, ecx
shr ebp, 0x16
sub edx, ebp
mov ebp, dword [esp + 4]
add edx, ebx
mov word [esp + 0x2e], dx
mov ebx, ecx
shr ebx, 0xa
and ebx, 0x7ff
add eax, ebx
dec eax
mov word [esp + 0x30], ax
shr ecx, 0x15
lea eax, [ecx + edx]
dec eax
mov word [esp + 0x32], ax
lea eax, [esp + 0x2c]
push dword [edi + 0x10]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0xc]
call fcn.0047d330
add esp, 0x10
jmp 0x48a1bc
mov edi, eax
mov eax, dword [esp + 0x58]
movzx ebp, word [eax + 4]
jmp 0x48a29c
mov eax, ebx
shr eax, 0x15
add ecx, eax
mov word [esp + 0x2e], cx
add edx, eax
mov word [esp + 0x32], dx
cmp cx, di
jg 0x48a198
mov eax, dword [esp + 0x58]
movzx esi, word [eax]
mov word [esp + 0x2c], si
mov eax, ebx
shr eax, 0xa
and eax, 0x7ff
add eax, esi
dec eax
mov word [esp + 0x30], ax
cmp si, bp
jg 0x48a280
lea edi, [esp + 0xc]
mov esi, dword [esp + 8]
nop word [eax + eax]
push dword [esi + 0x10]
lea eax, [esp + 0x30]
push eax
push edi
push dword [esp + 0xc]
call fcn.0047d330
add esp, 0x10
mov ebx, dword [esp + 0x34]
mov eax, ebx
shr eax, 0xa
and eax, 0x7ff
movzx ecx, word [esp + 0x2c]
add cx, ax
mov word [esp + 0x2c], cx
add word [esp + 0x30], ax
mov eax, dword [esp + 0x58]
movzx ebp, word [eax + 4]
cmp cx, bp
jle 0x48a2d0
movzx ecx, word [esp + 0x2e]
movzx edx, word [esp + 0x32]
movzx edi, word [eax + 6]
jmp 0x48a280