Function at 0x696f90
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x10f0
call fcn.005d1cf0
mov edi, edx
mov edx, ecx
lea ecx, [esp + 0x50]
call fcn.006951b0
push 2
call dword [0x71401c]
add esp, 4
push edi
push str.Repack_to_boot_image:___s__n
push eax
call fcn.00695190
add esp, 0xc
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x90]
mov esi, eax
mov eax, dword [eax]
mov ecx, esi
call dword [eax + 4]
mov dword [eax], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov dword [eax], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov dword [eax], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x6c]
mov dword [esp + 4], esi
mov dword [eax], 0
push 4
push str.header
call sub.msvcrt.dll__access
add esp, 8
test eax, eax
mov dword [esp + 0x38], edi
jne 0x697290
mov dword [esp + 0x20], 0x706194
mov eax, dword [esp + 4]
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov dword [esp + 0x30], esi
push 0x7068f8
push str.header
call fcn.006ad850
add esp, 8
test eax, eax
je 0x69726e
mov ebx, eax
mov dword [esp + 0xe8], 0x706940
mov dword [esp + 8], esi
mov dword [esp + 0xec], esi
lea eax, [esp + 0xe8]
mov dword [esp + 0xf8], eax
mov dword [esp + 0xc], 0x400
push 0x400
call sub.msvcrt.dll_malloc
add esp, 4
mov ecx, eax
mov dword [esp + 0x18], ebx
test ecx, ecx
jne 0x6970ad
cmp dword [esp + 0xc], 0
jne 0x697205
mov esi, ecx
push ebx
call sub.msvcrt.dll_feof
add esp, 4
test eax, eax
jne 0x697229
push ebx
call sub.msvcrt.dll_ferror
add esp, 4
test eax, eax
jne 0x697229
test esi, esi
jne 0x6970f4
push 0x100
call sub.msvcrt.dll_malloc
add esp, 4
test eax, eax
je 0x697212
mov esi, eax
mov dword [esp + 0xc], 0x100
xor edi, edi
jmp 0x697111
mov eax, esi
mov byte [eax + edi], bl
inc edi
mov esi, eax
cmp ebx, 0xa
mov ebx, dword [esp + 0x18]
je 0x69715e
push ebx
call sub.msvcrt.dll_fgetc
add esp, 4
cmp eax, 0xffffffff
je 0x697150
mov ebx, eax
mov ecx, dword [esp + 0xc]
lea eax, [ecx - 1]
cmp edi, eax
jl 0x697100
add ecx, ecx
mov dword [esp + 0xc], ecx
push ecx
push esi
call sub.msvcrt.dll_realloc
add esp, 8
test eax, eax
jne 0x697102
jmp 0x697214
mov eax, esi
test edi, edi
mov ebx, dword [esp + 0x18]
je 0x697229
mov byte [eax + edi], 0
test edi, edi
js 0x69720e
inc edi
mov esi, 0x7068f4
mov dword [esp + 0x1c], eax
nop word cs:[eax + eax]
cmp edi, 1
je 0x6971b0
movsx eax, byte [eax + edi - 2]
push 3
push eax
push 0x7068f4
call sub.msvcrt.dll_memchr
add esp, 0xc
dec edi
test eax, eax
je 0x6971b4
sub eax, esi
cmp eax, 0xffffffff
mov eax, dword [esp + 0x1c]
jne 0x697180
jmp 0x6971b8
xor edi, edi
jmp 0x6971b8
mov eax, dword [esp + 0x1c]
mov byte [eax + edi], 0
lea esi, [eax - 1]
nop
cmp byte [esi + 1], 0x20
lea esi, [esi + 1]
je 0x6971c0
push esi
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0xf8]
test ecx, ecx
je 0x69875c
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x10]
push edx
call eax
mov ecx, dword [esp + 0x1c]
mov esi, ecx
test al, al
jne 0x69709e
jmp 0x697229
mov edi, 0x16
mov esi, ecx
jmp 0x697221
mov esi, eax
jmp 0x697229
xor esi, esi
mov ebx, dword [esp + 0x18]
or byte [ebx + 0xc], 0x20
mov edi, 0xc
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
push esi
call sub.msvcrt.dll_free
add esp, 4
mov edx, dword [esp + 0xf8]
lea ecx, [esp + 0xe8]
cmp edx, ecx
je 0x697255
test edx, edx
mov edi, dword [esp + 0x38]
je 0x697265
mov eax, dword [edx]
add eax, 0x14
mov ecx, edx
jmp 0x697263
mov eax, dword [esp + 0xe8]
add eax, 0x10
mov edi, dword [esp + 0x38]
call dword [eax]
push ebx
call sub.msvcrt.dll_fclose
add esp, 4
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x20]
cmp edx, ecx
je 0x697287
test edx, edx
je 0x697290
mov eax, dword [edx]
add eax, 0x14
mov ecx, edx
jmp 0x69728e
mov eax, dword [esp + 0x20]
add eax, 0x10
call dword [eax]
push 0x1a4
push edi
call fcn.006ad8b0
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x5c]
test al, 8
jne 0x6972d9
mov ecx, 0x68
test al, al
js 0x6972c9
mov ecx, 0x100000
test eax, 0x100
jne 0x6972c9
mov ecx, 0x40000
test eax, 0x200
je 0x6972ff
push ecx
push dword [esp + 0x54]
push edi
call fcn.004733e0
add esp, 0xc
jmp 0x6972ff
lea esi, [esp + 0xe8]
push 0x1000
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x200
push esi
push edi
call fcn.006ae47e
add esp, 0xc
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x6c]
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x8c]
push eax
push esi
push edi
call fcn.004733e0
add esp, 0xc
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
test al, 1
je 0x69735d
push 0x200
push dword [esp + 0x80]
push edi
call fcn.004733e0
add esp, 0xc
mov eax, dword [esp + 0x5c]
test eax, 0x2000
je 0x69737b
push dword [esp + 0x88]
push dword [esp + 0x88]
push edi
call fcn.004733e0
add esp, 0xc
push 4
push str.kernel
call sub.msvcrt.dll__access
add esp, 8
test eax, eax
je 0x6973d5
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x6975b1
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x9c]
mov eax, dword [ecx]
call dword [eax + 8]
push eax
push esi
push edi
call fcn.004733e0
add esp, 0xc
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [eax], esi
jmp 0x6975b1
lea ecx, [esp + 0x20]
mov edx, str.kernel
push 0
call fcn.0069aea0
add esp, 4
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp byte [ebp + 8], 0
mov dword [esp + 0xc], esi
je 0x69749f
push ebx
push esi
push edi
call fcn.004733e0
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [eax], esi
test byte [esp + 0x5d], 0x20
je 0x69759a
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [eax]
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp esi, eax
jbe 0x69750c
push 2
call dword [0x71401c]
add esp, 4
push str.__Recompressed_kernel_is_too_large__using_original_kernel_n
push eax
call fcn.00695190
add esp, 8
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
xor ecx, ecx
xor edx, edx
sub edx, dword [eax]
sbb ecx, ecx
push 1
push ecx
push edx
push edi
call fcn.0049d160
add esp, 0x10
push edx
push eax
push edi
call fcn.0049cf00
add esp, 0xc
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x9c]
mov eax, dword [ecx]
call dword [eax + 8]
push eax
push esi
push edi
call fcn.004733e0
add esp, 0xc
jmp 0x697584
mov ecx, esi
mov edx, ebx
call fcn.0069a780
cmp eax, 6
jb 0x6974c4
cmp eax, 0xf
jb 0x6973fe
mov eax, dword [esp + 0x60]
cmp eax, 5
jg 0x6974d1
jmp 0x6973fe
mov eax, dword [esp + 0x60]
cmp eax, 6
jl 0x6973fe
cmp eax, 0xd
ja 0x6973fe
test dword [esp + 0x5c], 0x2000
mov ecx, 7
cmove ecx, eax
cmp eax, 6
cmovne ecx, eax
mov edx, edi
push ebx
push esi
call fcn.00698890
add esp, 8
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x697414
cmp byte [ebp + 8], 0
jne 0x697584
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
sub ebx, dword [eax]
lea eax, [esp + 0xe8]
push 0x1000
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add ebx, 0xfffffffc
je 0x697574
nop dword [eax + eax]
cmp ebx, 0x1000
mov esi, 0x1000
cmovb esi, ebx
push esi
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
sub ebx, esi
jne 0x697550
lea eax, [esp + 0x10]
push 4
push eax
push edi
call fcn.004733e0
add esp, 0xc
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [eax], esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x6975b1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x69869f
test byte [esp + 0x5d], 0x20
je 0x6975ee
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
add dword [eax], esi
push dword [esp + 0x90]
push dword [esp + 0x90]
push edi
call fcn.004733e0
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
add dword [eax], esi
push 4
push str.kernel_dtb
call sub.msvcrt.dll__access
add esp, 8
test eax, eax
jne 0x697651
push 0
push 0
push str.kernel_dtb
call fcn.00474260
add esp, 0xc
mov esi, eax
push 2
push 0
push eax
call sub.msvcrt.dll__lseek
add esp, 0xc
mov ebx, eax
push 0
push 0
push esi
call sub.msvcrt.dll__lseek
add esp, 0xc
push ebx
push 0
push esi
push edi
call fcn.00476860
add esp, 0x10
push esi
call sub.msvcrt.dll__close
add esp, 4
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 4]
add dword [eax], ebx
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x1c]
not eax
mov dword [esp + 0xc], eax
add esi, eax
add esi, ebx
mov eax, esi
xor edx, edx
div ebx
mov esi, edx
not esi
lea eax, [esp + 0xe8]
push 0x1000
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
je 0x6976c4
nop
cmp esi, 0x1000
mov ebx, 0x1000
cmovb ebx, esi
push ebx
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
sub esi, ebx
jne 0x6976a0
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov dword [esp + 0x48], eax
test byte [esp + 0x5c], 2
je 0x6976f1
push 0x200
push dword [esp + 0x84]
push edi
call fcn.004733e0
add esp, 0xc
push 4
push str.ramdisk.cpio
call sub.msvcrt.dll__access
add esp, 8
test eax, eax
je 0x69837b
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov dword [esp + 0xcc], eax
push 4
push str.second
call sub.msvcrt.dll__access
add esp, 8
test eax, eax
jne 0x6977f4
push 0
push 0
push str.second
call fcn.00474260
add esp, 0xc
mov esi, eax
push 2
push 0
push eax
call sub.msvcrt.dll__lseek
add esp, 0xc
mov ebx, eax
push 0
push 0
push esi
call sub.msvcrt.dll__lseek
add esp, 0xc
push ebx
push 0
push esi
push edi
call fcn.00476860
add esp, 0x10
push esi
call sub.msvcrt.dll__close
add esp, 4
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [eax], ebx
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
add esi, dword [esp + 0xc]
add esi, eax
mov eax, esi
xor edx, edx
div ebx
mov esi, edx
not esi
push 0x1000
push 0
lea eax, [esp + 0xf0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
je 0x6977f4
nop dword [eax + eax]
cmp esi, 0x1000
mov ebx, 0x1000
cmovb ebx, esi
push ebx
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
sub esi, ebx
jne 0x6977d0
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov dword [esp + 0xc8], eax
push 4
push str.extra
call sub.msvcrt.dll__access
add esp, 8
test eax, eax
je 0x6983bf
push 4
push str.recovery_dtbo
call sub.msvcrt.dll__access
add esp, 8
test eax, eax
jne 0x697914
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov ecx, esi
sar ecx, 0x1f
mov dword [eax], esi
mov dword [eax + 4], ecx
push 0
push 0
push str.recovery_dtbo
call fcn.00474260
add esp, 0xc
mov esi, eax
push 2
push 0
push eax
call sub.msvcrt.dll__lseek
add esp, 0xc
mov ebx, eax
push 0
push 0
push esi
call sub.msvcrt.dll__lseek
add esp, 0xc
push ebx
push 0
push esi
push edi
call fcn.00476860
add esp, 0x10
push esi
call sub.msvcrt.dll__close
add esp, 4
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x54]
mov dword [eax], ebx
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
add esi, dword [esp + 0xc]
add esi, eax
mov eax, esi
xor edx, edx
div ebx
mov esi, edx
not esi
push 0x1000
push 0
lea eax, [esp + 0xf0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
je 0x697914
nop dword [eax]
cmp esi, 0x1000
mov ebx, 0x1000
cmovb ebx, esi
push ebx
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
sub esi, ebx
jne 0x6978f0
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov dword [esp + 0xc4], eax
push 4
push 0x706872
call sub.msvcrt.dll__access
add esp, 8
test eax, eax
jne 0x697a04
push 0
push 0
push 0x706872
call fcn.00474260
add esp, 0xc
mov esi, eax
push 2
push 0
push eax
call sub.msvcrt.dll__lseek
add esp, 0xc
mov ebx, eax
push 0
push 0
push esi
call sub.msvcrt.dll__lseek
add esp, 0xc
push ebx
push 0
push esi
push edi
call fcn.00476860
add esp, 0x10
push esi
call sub.msvcrt.dll__close
add esp, 4
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov dword [eax], ebx
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
add esi, dword [esp + 0xc]
add esi, eax
mov eax, esi
xor edx, edx
div ebx
mov esi, edx
not esi
push 0x1000
push 0
lea eax, [esp + 0xf0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
je 0x697a04
nop word cs:[eax + eax]
cmp esi, 0x1000
mov ebx, 0x1000
cmovb ebx, esi
push ebx
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
sub esi, ebx
jne 0x6979e0
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x697a20
push eax
push dword [esp + 0xc0]
push edi
call fcn.004733e0
add esp, 0xc
mov eax, dword [esp + 0x5c]
test al, 0x10
jne 0x697a38
test al, 0x20
je 0x697a64
mov eax, 0x10
mov ecx, 0x7059a9
jmp 0x697a59
push 0x10
push str.SEANDROIDENFORCE
push edi
call fcn.004733e0
add esp, 0xc
test byte [esp + 0x5c], 8
je 0x697a64
mov eax, 4
mov ecx, 0x705aa1
push eax
push ecx
push edi
call fcn.004733e0
add esp, 0xc
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov dword [esp + 8], eax
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
add esi, dword [esp + 0xc]
add esi, eax
mov dword [esp + 0x3c], 0
mov eax, esi
xor edx, edx
div ebx
mov esi, edx
not esi
push 0x1000
push 0
lea eax, [esp + 0xf0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
je 0x697af4
nop word cs:[eax + eax]
cmp esi, 0x1000
mov ebx, 0x1000
cmovb ebx, esi
push ebx
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
sub esi, ebx
jne 0x697ad0
mov eax, dword [esp + 0x5c]
test eax, 0x1000
je 0x697b96
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov ebx, eax
add ebx, dword [esp + 0xc]
not ebx
push 0x1000
push 0
lea eax, [esp + 0xf0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
and ebx, 0xfff
je 0x697b64
nop word [eax + eax]
cmp ebx, 0x1000
mov esi, 0x1000
cmovb esi, ebx
push esi
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
sub ebx, esi
jne 0x697b40
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x20]
bswap eax
push eax
push dword [esp + 0x9c]
push edi
call fcn.004733e0
add esp, 0xc
mov eax, dword [esp + 0x5c]
test al, 4
jne 0x697bf6
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov esi, eax
mov ebx, dword [esp + 0x54]
cmp ebx, eax
jbe 0x697bf6
push 0x1000
push 0
lea eax, [esp + 0xf0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
nop dword [eax + eax]
sub ebx, esi
je 0x697bf6
cmp ebx, 0x1000
mov esi, 0x1000
cmovb esi, ebx
push esi
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
jmp 0x697bd0
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x38]
push 1
call fcn.0069aea0
add esp, 4
mov eax, dword [esp + 0x5c]
test al, 1
je 0x697c3e
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0x4c]
mov dword [esi + ecx + 4], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
add dword [eax], 0x200
mov eax, dword [esp + 0x5c]
test al, 2
je 0x697c68
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [esp + 0x48]
mov dword [esi + ecx + 4], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add dword [eax], 0x200
mov edi, dword [esp + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x88]
mov esi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x64]
mov dword [eax], esi
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x44]
mov dword [esp + 0xc], eax
test eax, eax
je 0x69806a
xor eax, eax
test byte [esp + 0x5c], 0x40
sete al
push eax
call fcn.00468b70
add esp, 4
mov dword [esp + 0x20], eax
mov esi, dword [esp + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
add edx, edi
mov ecx, eax
or ecx, edi
mov ecx, 1
cmove edx, ecx
push eax
push edx
lea eax, [esp + 0xf0]
push eax
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 4
push eax
lea eax, [esp + 0xf0]
push eax
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [esp + 0x48]
add edx, edi
mov ecx, eax
or ecx, edi
mov dword [esp + 0x10], eax
mov ecx, 1
cmove edx, ecx
mov ebx, dword [esp + 0x20]
push eax
push edx
lea eax, [esp + 0xf0]
push eax
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov ebx, dword [esp + 0x20]
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xf0]
push eax
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0xcc]
add edx, edi
mov ecx, eax
or ecx, edi
mov ecx, 1
cmovne ecx, edx
push eax
push ecx
lea eax, [esp + 0xf0]
push eax
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov ebx, dword [esp + 0x20]
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xf0]
push eax
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
je 0x697ed2
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc8]
add ecx, edi
push eax
push ecx
lea esi, [esp + 0xf0]
push esi
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov ebx, dword [esp + 0x20]
push 4
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov esi, eax
dec eax
cmp eax, 1
ja 0x69800c
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x54]
mov dword [esp + 0x38], esi
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov eax, dword [eax]
add eax, edi
mov ecx, dword [esp + 0x10]
mov edx, edi
or edx, ecx
mov edx, 1
cmovne edx, eax
push ecx
push edx
lea esi, [esp + 0xf0]
push esi
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov ebx, dword [esp + 0x20]
push 4
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
cmp dword [esp + 0x38], 2
jne 0x69800c
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x6c]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0xc4]
add edx, edi
or edi, eax
mov ecx, 1
cmovne ecx, edx
push eax
push ecx
lea edi, [esp + 0xf0]
push edi
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00468d20
add esp, 0xc
mov esi, dword [esp + 0x20]
push 4
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.00468d20
add esp, 0xc
xorps xmm0, xmm0
mov ebx, dword [esp + 0xc]
movups xmmword [ebx + 0x10], xmm0
movups xmmword [ebx], xmm0
mov esi, dword [esp + 0x20]
push esi
call fcn.00469070
add esp, 4
push eax
push ebx
lea eax, [esp + 0xf0]
push eax
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe8]
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.00468ed0
add esp, 0xc
cmp dword [esp + 0x20], 0
je 0x69806a
lea eax, [esp + 0x20]
push eax
call fcn.0046e3f0
add esp, 4
mov ecx, dword [esp + 4]
call fcn.00694b90
test byte [esp + 0x5d], 4
jne 0x698098
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
call dword [eax + 0x88]
mov ecx, dword [esp + 0x1c]
add ecx, ebx
push eax
push esi
push ecx
jmp 0x6980d1
mov edi, dword [esp + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x8c]
mov esi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x88]
add esi, 0xfffffc00
cmp eax, esi
cmovb esi, eax
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
lea eax, [ebx + eax + 0x400]
push esi
push dword [edi + 4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
test byte [esp + 0x5d], 0x10
mov edi, dword [esp + 0x18]
je 0x69816f
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x94]
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ecx + 0x10]
movups xmmword [ebx + eax - 0x30], xmm1
movups xmmword [ebx + eax - 0x40], xmm0
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [ebx + eax - 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [ebx + eax - 0x20], xmm0
mov ecx, dword [esp + 8]
bswap ecx
mov dword [ebx + eax - 0x30], ecx
mov dword [ebx + eax - 0x34], 0
mov ecx, dword [esp + 0x3c]
bswap ecx
mov dword [ebx + eax - 0x28], ecx
mov dword [ebx + eax - 0x2c], 0
push str.PATCHVBMETAFLAG
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
je 0x69816f
mov esi, eax
push eax
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 4
jne 0x69816f
cmp dword [esi], 0x65757274
jne 0x69816f
mov eax, dword [esp + 0x3c]
mov dword [ebx + eax + 0x78], 0x3000000
mov eax, dword [esp + 0x5c]
test al, 8
jne 0x698195
test al, al
jns 0x698185
mov ecx, dword [esp + 8]
add ecx, 0xffffff98
mov dword [ebx + 0x60], ecx
test eax, 0x800
jne 0x69823b
jmp 0x69832d
mov dword [ebx + 4], 1
mov dword [ebx], 0x42544844
mov eax, dword [esp + 8]
add eax, 0xfffffe00
mov dword [ebx + 0x30], eax
lea ecx, [ebx + 0x200]
lea edx, [esp + 0xd8]
push eax
push ecx
push edx
call fcn.004a2260
add esp, 0xc
lea eax, [ebx + 8]
lea ecx, [esp + 0xe0]
push 0x20
push eax
push ecx
call fcn.004a2260
add esp, 0xc
movsd xmm0, qword [esp + 0xe0]
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0xec], ecx
mov dword [esp + 0xe8], eax
movsd qword [esp + 0x20], xmm0
sub esp, 0x10
movsd xmm0, qword [esp + 0x30]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xf8]
movsd qword [esp], xmm0
call fcn.00469360
add esp, 0x10
mov eax, dword [esp + 0x5c]
test eax, 0x800
je 0x69832d
mov edx, dword [esp + 0x1c]
lea eax, [ebx + edx]
mov edi, dword [esp + 8]
mov ecx, edi
sub ecx, edx
xor edx, edi
or edx, ebx
mov edx, 1
cmovne edx, eax
lea eax, [esp + 0xd0]
push ecx
push edx
push eax
call fcn.004a2260
add esp, 0xc
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
sub esp, 0x18
movsd xmm0, qword [esp + 0x28]
movsd qword [esp], xmm0
lea esi, [esp + 0x100]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str._boot
call fcn.0046c660
add esp, 0x18
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x28], eax
movsd xmm0, qword [esp + 0xe8]
movsd qword [esp + 0x20], xmm0
push esi
call fcn.004a3a50
add esp, 4
lea esi, [esp + 0x20]
push esi
call fcn.004a3a90
add esp, 4
test eax, eax
je 0x698320
push 0
push edi
push dword [esp + 0x20]
call sub.msvcrt.dll__lseek
add esp, 0xc
push esi
call fcn.004a3ab0
add esp, 4
mov edi, esi
mov esi, eax
push edi
call fcn.004a3a90
add esp, 4
push eax
push esi
mov esi, edi
push dword [esp + 0x20]
call fcn.004733e0
add esp, 0xc
push esi
call fcn.004a3a70
add esp, 4
mov edi, dword [esp + 0x18]
push edi
call sub.msvcrt.dll__close
add esp, 4
test ebx, ebx
je 0x6986d9
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x6986d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x6986cf
cmp eax, 0x2327
ja 0x698371
mov esi, dword [eax*4 + 0x708694]
test esi, esi
jne 0x6986d1
mov esi, 0xffffffff
jmp 0x6986d1
lea ecx, [esp + 0x20]
mov edx, str.ramdisk.cpio
push 0
call fcn.0069aea0
add esp, 4
cmp byte [ebp + 8], 0
je 0x6984bd
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push ebx
mov dword [esp + 0xc], esi
push esi
push edi
call fcn.004733e0
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x6985af
lea ecx, [esp + 0x20]
mov edx, str.extra
push 0
call fcn.0069aea0
add esp, 4
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp byte [ebp + 8], 0
mov dword [esp + 8], esi
je 0x6984d3
push ebx
push esi
push edi
call fcn.004733e0
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov dword [eax], esi
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
add esi, dword [esp + 0xc]
add esi, eax
mov eax, esi
xor edx, edx
div ebx
mov esi, edx
not esi
push 0x1000
push 0
lea eax, [esp + 0xf0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
je 0x698474
nop word cs:[eax + eax]
cmp esi, 0x1000
mov ebx, 0x1000
cmovb ebx, esi
push ebx
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
sub esi, ebx
jne 0x698450
mov eax, dword [esp + 8]
test eax, eax
je 0x69781f
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x69781f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x69874d
cmp eax, 0x2327
ja 0x6984b3
mov esi, dword [eax*4 + 0x708694]
test esi, esi
jne 0x69874f
mov esi, 0xffffffff
jmp 0x69874f
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x698500
mov dword [esp + 8], esi
jmp 0x69854e
mov ecx, esi
mov edx, ebx
call fcn.0069a780
cmp eax, 6
jb 0x69866d
cmp eax, 0xf
jb 0x6983e8
mov ecx, dword [esp + 0x68]
cmp ecx, 5
jg 0x69867a
jmp 0x6983e8
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp eax, 4
jne 0x6984cd
cmp esi, 0xc
je 0x6984cd
push 2
call dword [0x71401c]
add esp, 4
lea edx, [esi - 6]
mov ecx, 0x70687d
cmp edx, 0xb
ja 0x698532
mov ecx, dword [esi*4 + 0x706888]
push str.lz4_legacy
push ecx
push str.RAMDISK_FMT:___s_______s__n
push eax
call fcn.00695190
add esp, 0x10
mov dword [esp + 8], 0xc
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ecx, esi
mov edx, ebx
call fcn.0069a780
cmp eax, 6
jb 0x698584
cmp eax, 0xf
jb 0x6983a0
mov ecx, dword [esp + 8]
cmp ecx, 6
jl 0x6983a0
cmp ecx, 0xe
jl 0x698594
jmp 0x6983a0
mov ecx, dword [esp + 8]
lea eax, [ecx - 6]
cmp eax, 7
ja 0x6983a0
mov edx, edi
push ebx
mov dword [esp + 0xc], esi
push esi
call fcn.00698890
add esp, 8
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [eax], esi
push 1
push 0
push edi
call sub.msvcrt.dll__lseek
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ebx, eax
add esi, dword [esp + 0xc]
add esi, eax
mov eax, esi
xor edx, edx
div ebx
mov esi, edx
not esi
push 0x1000
push 0
lea eax, [esp + 0xf0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
add esi, ebx
je 0x698624
nop word cs:[eax + eax]
cmp esi, 0x1000
mov ebx, 0x1000
cmovb ebx, esi
push ebx
lea eax, [esp + 0xec]
push eax
push edi
call fcn.006ae47e
add esp, 0xc
sub esi, ebx
jne 0x698600
mov eax, dword [esp + 8]
test eax, eax
je 0x697708
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x697708
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x69873e
cmp eax, 0x2327
ja 0x698663
mov esi, dword [eax*4 + 0x708694]
test esi, esi
jne 0x698740
mov esi, 0xffffffff
jmp 0x698740
mov ecx, dword [esp + 0x68]
cmp ecx, 6
jl 0x6983e8
cmp ecx, 0xd
ja 0x6983e8
mov edx, edi
push ebx
push esi
call fcn.00698890
add esp, 8
mov esi, eax
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
jmp 0x6983fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x698731
cmp eax, 0x2327
ja 0x6986bf
mov esi, dword [eax*4 + 0x708694]
test esi, esi
jne 0x6986c4
mov esi, 0xffffffff
call dword [sym.imp.msvcrt.dll__errno]
jmp 0x6973ce
xor esi, esi
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x6986e9
mov eax, dword [ecx]
call dword [eax + 0x84]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x698729
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x698729
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x69871f
cmp eax, 0x2327
ja 0x698718
mov esi, dword [eax*4 + 0x708694]
test esi, esi
jne 0x698721
mov esi, 0xffffffff
jmp 0x698721
xor esi, esi
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
call dword [sym.imp.msvcrt.dll__errno]
jmp 0x6973ce
xor esi, esi
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
jmp 0x697708
xor esi, esi
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
jmp 0x69781f
call fcn.0069ad10
jmp 0x69881d
mov esi, eax
mov ecx, dword [esp + 0xc]
jmp 0x698857
call fcn.0069af30
jmp 0x698866
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x698876
mov eax, dword [ecx]
call dword [eax + 0x84]
mov ecx, dword [esp + 0x50]
call fcn.0069af30
push esi
call fcn.0050ffb0
int3