Function at 0x100782d0
Capabilities:
Decompress data using quicklz

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, ecx
push esi
push edi
xor esi, esi
nop dword [eax]
test ebp, ebp
je 0x1007864b
test esi, esi
jne 0x100782f1
test byte [ebx], 1
jmp 0x100782f9
cmp esi, 1
jne 0x100782ff
test byte [ebx], 2
je 0x1007839b
mov edi, esi
shl edi, 5
mov ecx, dword [edi + ebx + 0x74]
mov eax, ecx
mov edx, dword [edi + ebx + 0x70]
and ecx, 0x7ff
shr eax, 0xb
and eax, 0x7ff
push eax
mov eax, edx
push ecx
shr eax, 0xf
and eax, 0x1f
push eax
mov eax, edx
and edx, 0x1ff
shr eax, 9
and eax, 0x3f
shl edx, 5
push eax
push edx
push esi
push str.DISPFB__d__BP_05x_BW_u_PSM_u_DBX_u_DBY_u_n
push ebp
call fcn.1001d650
mov ecx, dword [edi + ebx + 0x84]
lea eax, [esi + 4]
shl eax, 5
mov edx, dword [eax + ebx]
mov eax, edx
shr eax, 0x1b
and eax, 3
push eax
mov eax, edx
shr eax, 0x17
and eax, 0xf
push eax
mov eax, ecx
and ecx, 0xfff
shr eax, 0xc
and eax, 0x7ff
push eax
mov eax, edx
and edx, 0xfff
push ecx
shr eax, 0xc
and eax, 0x7ff
push eax
push edx
push esi
push str.DISPLAY__d__DX_u_DY_u_DW_u_DH_u_MAGH_u_MAGV_u_n
push ebp
call fcn.1001d650
add esp, 0x44
inc esi
cmp esi, 2
jl 0x100782e0
mov ecx, dword [ebx]
movzx eax, byte [ebx + 1]
push eax
mov eax, ecx
shr eax, 7
and eax, 1
push eax
mov eax, ecx
shr eax, 6
and eax, 1
push eax
mov eax, ecx
shr eax, 5
and eax, 1
push eax
mov eax, ecx
shr eax, 2
and eax, 7
push eax
mov eax, ecx
and ecx, 1
shr eax, 1
and eax, 1
push eax
push ecx
push str.PMODE_EN1_u_EN2_u_CRTMD_u_MMOD_u_AMOD_u_SLBG_u_ALP_u_n
push ebp
call fcn.1001d650
mov edx, dword [ebx + 0x10]
add esp, 0x24
mov ecx, dword [ebx + 0x14]
mov eax, edx
shr eax, 0x12
and eax, 1
push eax
mov eax, ecx
shr eax, 4
and eax, 1
push eax
mov eax, ecx
shr eax, 2
and eax, 3
push eax
mov eax, edx
shr eax, 0xa
and eax, 3
push eax
mov eax, edx
shr eax, 0x15
and eax, 0xf
push eax
mov eax, ecx
shr eax, 1
and eax, 1
push eax
mov eax, edx
shr eax, 0xc
and eax, 1
push eax
mov eax, edx
shr eax, 0x11
and eax, 1
push eax
mov eax, edx
and eax, 7
push eax
mov eax, edx
shr eax, 0x1b
and eax, 1
push eax
mov eax, edx
shr eax, 0x10
and eax, 1
push eax
mov eax, edx
shr eax, 0x1a
and eax, 1
push eax
mov eax, edx
shr eax, 0x1d
and eax, 1
push eax
mov eax, edx
and ecx, 1
shr eax, 0x1c
and eax, 1
push eax
mov eax, edx
shr eax, 0x13
and eax, 3
push eax
push ecx
mov eax, edx
shr eax, 3
and eax, 0x7f
push eax
mov eax, edx
shr eax, 0x19
and eax, 1
push eax
mov eax, edx
shr eax, 0xf
and eax, 1
push eax
mov eax, edx
shr edx, 0x1e
shr eax, 0xd
and eax, 3
push eax
push edx
push str.SMODE1_CLKSEL_u_CMOD_u_EX_u_GCONT_u_LC_u_NVCK_u_PCK2_u_PEHS_u_PEVS_u_PHS_u_PRST_u_PVS_u_RC_u_SINT_u_SLCK_u_SLCK2_u_SPML_u_T1248_u_VCKSEL_u_VHP_u_XPCK_u_n
push ebp
call fcn.1001d650
mov ecx, dword [ebx + 0x20]
add esp, 0x5c
mov eax, ecx
shr eax, 2
and eax, 3
push eax
mov eax, ecx
and ecx, 1
shr eax, 1
and eax, 1
push eax
push ecx
push str.SMODE2_INT_u_FFMD_u_DPMS_u_n
push ebp
call fcn.1001d650
add esp, 0x14
push dword [ebx + 0x34]
push dword [ebx + 0x30]
push str.SRFSH__08x__08x_n
push ebp
call fcn.1001d650
push dword [ebx + 0x44]
push dword [ebx + 0x40]
push str.SYNCH1__08x__08x_n
push ebp
call fcn.1001d650
push dword [ebx + 0x54]
push dword [ebx + 0x50]
push str.SYNCH2__08x__08x_n
push ebp
call fcn.1001d650
mov ecx, dword [ebx + 0x64]
mov eax, ecx
mov edx, dword [ebx + 0x60]
shr eax, 0x15
push eax
mov eax, edx
shr eax, 0xa
and eax, 0x3ff
push eax
mov eax, edx
and eax, 0x3ff
push eax
mov eax, ecx
shr eax, 0xa
and eax, 0x7ff
and ecx, 0x3ff
push eax
push ecx
shr edx, 0x14
push edx
push str.SYNCV_VBP_u_VBPE_u_VDP_u_VFP_u_VFPE_u_VS_u_n
push ebp
call fcn.1001d650
add esp, 0x50
push dword [ebx + 0x1004]
push dword [ebx + 0x1000]
push str.CSR__08x__08x_n
push ebp
call fcn.1001d650
movzx eax, byte [ebx + 0xe0]
push eax
movzx eax, byte [ebx + 0xe1]
push eax
movzx eax, byte [ebx + 0xe2]
push eax
push str.BGCOLOR_B_u_G_u_R_u_n
push ebp
call fcn.1001d650
mov ecx, dword [ebx + 0xb4]
add esp, 0x24
mov edx, dword [ebx + 0xb0]
mov eax, ecx
shr eax, 0xb
and ecx, 0x7ff
and eax, 0x7ff
push eax
push ecx
mov eax, edx
shr eax, 0x19
and eax, 3
push eax
mov eax, edx
shr eax, 0x17
and eax, 3
push eax
mov eax, edx
shr eax, 0x16
and eax, 1
push eax
mov eax, edx
shr eax, 0x14
and eax, 3
push eax
mov eax, edx
and edx, 0x3fff
shr eax, 0xe
and eax, 0x3f
push eax
push edx
push str.EXTBUF_BP0x_x_BW_u_FBIN_u_WFFMD_u_EMODA_u_EMODC_u_WDX_u_WDY_u_n
push ebp
call fcn.1001d650
mov ecx, dword [ebx + 0xc4]
mov eax, ecx
mov edx, dword [ebx + 0xc0]
and ecx, 0xfff
shr eax, 0xc
and eax, 0x7ff
push eax
push ecx
mov eax, edx
shr eax, 0x1b
and eax, 3
push eax
mov eax, edx
shr eax, 0x17
and eax, 0xf
push eax
mov eax, edx
and edx, 0xfff
shr eax, 0xc
and eax, 0x7ff
push eax
push edx
push str.EXTDATA_SX_u_SY_u_SMPH_u_SMPV_u_WW_u_WH_u_n
push ebp
call fcn.1001d650
mov eax, dword [ebx + 0xd0]
add esp, 0x48
and eax, 1
push eax
push str.EXTWRITE_EN_u_n
push ebp
call fcn.1001d650
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 4