Function at 0x406b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x20], ecx
mov eax, dword [ecx + 0x18]
mov esi, dword [eax + 4]
push 0x20
call fcn.00420cd0
add esp, 4
mov dword [esp + 8], eax
mov dword [esp], 0x21
mov dword [esp + 4], 0x10
movupd xmm0, xmmword [str.android_info.txt]
movupd xmmword [eax], xmm0
mov byte [eax + 0x10], 0
mov eax, dword [esi]
lea edx, [esp + 0x98]
mov edi, esp
mov ecx, esi
push edx
push edi
call dword [eax + 8]
mov ebx, eax
test byte [esp], 1
je 0x406bad
push dword [esp + 8]
call fcn.00420e70
add esp, 4
test bl, bl
je 0x4077c0
mov edx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov ebx, eax
sub ebx, edx
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x84], 0
cmp ebx, 0xfffffff0
jae 0x4077ca
cmp ebx, 0xb
jae 0x406c09
mov ecx, ebx
add cl, bl
mov byte [esp + 0x7c], cl
lea esi, [esp + 0x7d]
cmp eax, edx
mov edi, dword [esp + 0x20]
jne 0x406c39
jmp 0x406c44
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
mov esi, edx
call fcn.00420cd0
mov edx, esi
add esp, 4
mov esi, eax
mov dword [esp + 0x84], eax
add edi, 2
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], ebx
mov edi, dword [esp + 0x20]
push ebx
push edx
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
mov eax, dword [edi + 0x18]
movzx eax, byte [eax + 0xc]
mov byte [esp + 0x1f], al
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0
mov ecx, dword [0x5b12f0]
mov dword [esp + 8], 0
mov byte [esp], 0xe
mov dword [esp + 1], 0x646f7270
mov dword [esp + 4], 0x74637564
mov eax, dword [ecx]
lea edx, [esp + 0x6c]
push 0
push edx
lea edx, [esp + 8]
push edx
call dword [eax + 0x14]
mov esi, eax
test byte [esp], 1
je 0x406cb2
push dword [esp + 8]
call fcn.00420e70
add esp, 4
test esi, esi
je 0x406d01
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
mov ecx, esp
push dword [0x5b12f0]
call fcn.00479ca0
test byte [esp], 1
je 0x406cdc
mov eax, dword [esp + 8]
jmp 0x406ce0
lea eax, [esp + 1]
push eax
push str.getvar:product_FAILED___s__n
push esi
call fcn.004018d0
add esp, 0xc
test byte [esp], 1
je 0x406d01
push dword [esp + 8]
call fcn.00420e70
add esp, 4
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov word [esp], 0xa02
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x88]
mov edx, esp
push edx
push eax
push ecx
call fcn.0042ad20
add esp, 0xc
test byte [esp], 1
je 0x406d69
push dword [esp + 8]
call fcn.00420e70
add esp, 4
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0xa4], eax
cmp edi, eax
jne 0x406db0
test edi, edi
je 0x4076eb
mov eax, dword [esp + 0x8c]
mov ecx, edi
cmp eax, edi
jne 0x4076c6
jmp 0x40773e
add edi, 0xc
cmp edi, dword [esp + 0xa4]
je 0x4076dc
movzx eax, byte [edi]
test al, 1
je 0x406dc0
mov eax, dword [edi + 4]
test eax, eax
jne 0x406dc6
jmp 0x406da0
shr eax, 1
test eax, eax
je 0x406da0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00402090
add esp, 0x14
test al, al
je 0x406e50
movzx eax, byte [esp + 0x34]
test al, 1
je 0x406e6c
mov eax, dword [esp + 0x38]
jmp 0x406e6e
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [edi], 1
je 0x406ef1
mov ecx, dword [edi + 8]
jmp 0x406ef4
shr eax, 1
cmp eax, 0x10
mov dword [esp + 0x78], edi
jne 0x406e93
lea ecx, [esp + 0x34]
push 0x10
push str.partition_exists
push 0xffffffffffffffff
push 0
call fcn.00425f30
test eax, eax
je 0x406ff8
movzx ebx, byte [esp + 0x17]
lea eax, [esp + 0x34]
push eax
push str.Checking_
lea esi, [esp + 0x50]
push esi
call fcn.00428410
add esp, 0xc
mov ecx, esi
push 0x581d4f
call fcn.00424b40
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0
movzx eax, byte [esp]
test al, 1
je 0x406f08
mov eax, dword [esp + 4]
test eax, eax
jne 0x406f0e
jmp 0x406f36
lea ecx, [edi + 1]
push ecx
push str.android_info.txt_syntax_error:__s_n
push eax
call fcn.004018d0
add esp, 0xc
jmp 0x407620
shr eax, 1
test eax, eax
je 0x406f36
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esp], 1
lea ecx, [esp + 1]
je 0x406f27
mov ecx, dword [esp + 8]
push ecx
push str.__50s
push eax
call fcn.004018d0
add esp, 0xc
call fcn.00429170
fstp qword [0x5b1300]
test byte [esp], 1
je 0x406f53
push dword [esp + 8]
call fcn.00420e70
add esp, 4
test byte [esp + 0x48], 1
je 0x406f66
push dword [esp + 0x50]
call fcn.00420e70
add esp, 4
mov byte [esp + 0x2c], bl
call fcn.00429170
fstp qword [esp + 0xb8]
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp + 0x20], xmm0
movzx ecx, byte [esp + 0x60]
mov eax, ecx
shr eax, 1
mov edx, eax
test cl, 1
je 0x406f99
mov edx, dword [esp + 0x64]
test edx, edx
je 0x4072b8
movzx ebx, byte [esp + 0x6c]
test bl, 1
je 0x406fb8
mov esi, dword [esp + 0x70]
cmp edx, esi
je 0x406fc4
jmp 0x40723b
mov esi, ebx
shr esi, 1
cmp edx, esi
jne 0x40723b
lea esi, [esp + 0x6d]
test bl, 1
je 0x406fd1
mov esi, dword [esp + 0x74]
test cl, 1
jne 0x407229
xor ecx, ecx
nop dword [eax]
movzx edx, byte [esp + ecx + 0x61]
cmp dl, byte [esi + ecx]
jne 0x40723b
inc ecx
cmp eax, ecx
jne 0x406fe0
jmp 0x4072b8
mov eax, dword [esp + 0x54]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov esi, dword [0x5b12f0]
mov dword [esp + 0x10], eax
push eax
push str.has_slot:
lea edi, [esp + 0x50]
push edi
call fcn.00428410
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
push 0
lea edx, [esp + 4]
push edx
push edi
call dword [eax + 0x14]
test eax, eax
jne 0x407773
movzx ecx, byte [esp]
mov eax, ecx
shr eax, 1
and cl, 1
mov edx, dword [esp + 4]
mov esi, edx
cmove esi, eax
cmp esi, 3
mov edi, dword [esp + 0x10]
jne 0x40708d
mov ecx, esp
push 3
push 0x58074e
push 0xffffffffffffffff
push 0
call fcn.00425f30
test eax, eax
je 0x4076a2
movzx eax, byte [esp]
mov edx, dword [esp + 4]
mov ecx, eax
and cl, 1
shr eax, 1
test cl, cl
cmovne eax, edx
mov bl, 1
cmp eax, 2
jne 0x4070b0
mov ecx, esp
push 2
push 0x58165a
push 0xffffffffffffffff
push 0
call fcn.00425f30
test eax, eax
setne bl
test byte [esp + 0x48], 1
je 0x4070c3
push dword [esp + 0x50]
call fcn.00420e70
add esp, 4
test bl, bl
jne 0x40778a
mov eax, dword [0x5b12f8]
mov ecx, dword [0x5b12f4]
mov dword [esp + 0x2c], eax
cmp eax, ecx
je 0x407757
lea eax, [edi + 1]
mov dword [esp + 0x18], eax
xor esi, esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x94], 0
jmp 0x407145
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
add eax, ecx
push edx
push edi
push dword [eax + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4071d2
nop
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc esi
mov eax, dword [esp + 0x2c]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xb6db6db7
add dword [esp + 0x30], 0x38
cmp esi, eax
jae 0x407200
imul eax, esi, 0x38
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], eax
movzx ecx, byte [ecx + eax]
mov eax, ecx
shr eax, 1
mov edx, eax
test cl, 1
je 0x40716f
mov edx, dword [esp + 0x20]
mov ebx, edi
mov edi, dword [esp + 0x40]
mov edx, dword [edx + edi + 4]
mov edi, ebx
test edx, edx
je 0x407124
movzx ebx, byte [edi]
test bl, 1
je 0x407190
mov edi, dword [edi + 4]
cmp edx, edi
jne 0x407120
jmp 0x407198
mov edi, ebx
shr edi, 1
cmp edx, edi
jne 0x407120
mov edi, dword [esp + 0x18]
test bl, 1
je 0x4071a8
mov edi, dword [esp + 0x10]
mov edi, dword [edi + 8]
test cl, 1
jne 0x407100
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
add ecx, edx
xor edx, edx
nop dword [eax]
movzx ebx, byte [ecx + edx]
cmp bl, byte [edi + edx]
jne 0x407120
inc edx
cmp eax, edx
jne 0x4071c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
mov byte [eax + ecx + 0x30], 0
mov eax, dword [0x5b12f8]
mov dword [esp + 0x2c], eax
mov al, 1
mov dword [esp + 0x94], eax
mov ecx, dword [0x5b12f4]
mov edi, dword [esp + 0x10]
jmp 0x407128
test byte [esp + 0x94], 1
je 0x407757
test byte [esp], 1
je 0x407220
push dword [esp + 8]
call fcn.00420e70
add esp, 4
mov edi, dword [esp + 0x78]
jmp 0x407620
push edx
push esi
push dword [esp + 0x70]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4072b8
call fcn.00429170
fstp qword [esp + 0xb0]
movsd xmm0, qword [esp + 0xb0]
movsd qword [esp + 0x40], xmm0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esp + 0x6c], 1
lea ecx, [esp + 0x6d]
je 0x407270
mov ecx, dword [esp + 0x74]
test byte [esp + 0x60], 1
lea edx, [esp + 0x61]
mov edi, dword [esp + 0x78]
je 0x407283
mov edx, dword [esp + 0x68]
movsd xmm0, qword [esp + 0x40]
subsd xmm0, qword [esp + 0x20]
sub esp, 0x18
movsd qword [esp + 0x10], xmm0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], str.IGNORE__product_is__s_required_only_for__s___7.3fs__n
call fcn.004018d0
add esp, 0x18
jmp 0x407620
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov ecx, dword [0x5b12f0]
mov eax, dword [ecx]
push 0
lea edx, [esp + 4]
push edx
lea edx, [esp + 0x3c]
push edx
call dword [eax + 0x14]
test eax, eax
je 0x407367
push 2
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call esi
add esp, 4
push str.FAILED_n_n
push eax
call fcn.004018d0
add esp, 8
push 2
call esi
add esp, 4
mov esi, eax
test byte [esp + 0x34], 1
lea edi, [esp + 0x35]
je 0x40731d
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x48]
push dword [0x5b12f0]
call fcn.00479ca0
test byte [esp + 0x48], 1
lea eax, [esp + 0x49]
je 0x40733b
mov eax, dword [esp + 0x50]
push eax
push edi
push str.Could_not_getvar_for__s___s__n_n
push esi
call fcn.004018d0
add esp, 0x10
test byte [esp + 0x48], 1
je 0x4075d9
push dword [esp + 0x50]
call fcn.00420e70
add esp, 4
jmp 0x4075d9
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
cmp esi, eax
jne 0x40742d
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
cmp al, byte [esp + 0x2c]
jne 0x40751d
push 2
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call esi
add esp, 4
push str.FAILED_n_n
push eax
call fcn.004018d0
add esp, 8
push 2
call esi
add esp, 4
test byte [esp + 0x34], 1
lea ecx, [esp + 0x35]
je 0x4073c2
mov ecx, dword [esp + 0x3c]
test byte [esp], 1
lea edx, [esp + 1]
je 0x4073d0
mov edx, dword [esp + 8]
push edx
push ecx
push str.Device__s_is__s._n
push eax
call fcn.004018d0
add esp, 0x10
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp byte [esp + 0x2c], 0
mov ecx, str.rejects
mov edx, str.requires
cmove ecx, edx
mov edx, dword [esp + 0x54]
test byte [edx], 1
je 0x407575
mov edx, dword [edx + 8]
jmp 0x407576
add esi, 0xc
cmp esi, dword [esp + 0x10]
je 0x40737b
movzx ecx, byte [esi]
mov eax, ecx
shr eax, 1
mov edi, eax
mov dword [esp + 0x40], ecx
test cl, 1
je 0x407442
mov edi, dword [esi + 4]
movzx edx, byte [esp]
test dl, 1
je 0x407460
mov ecx, dword [esp + 4]
jmp 0x407464
mov ecx, edx
shr ecx, 1
mov ebx, dword [esi + 8]
mov dword [esp + 0x30], ebx
cmp edi, ecx
jne 0x4074e1
lea ebx, [esi + 1]
lea ecx, [esp + 1]
test dl, 1
je 0x40747f
mov ecx, dword [esp + 8]
test byte [esp + 0x40], 1
cmovne ebx, dword [esp + 0x30]
jne 0x4074c0
mov dl, 1
mov dword [esp + 0x18], edx
test edi, edi
je 0x407383
xor edx, edx
nop dword [eax + eax]
movzx ebx, byte [esi + edx + 1]
cmp bl, byte [ecx + edx]
jne 0x4074e1
inc edx
cmp eax, edx
jne 0x4074a0
jmp 0x407383
mov al, 1
mov dword [esp + 0x18], eax
test edi, edi
je 0x407383
push edi
push ecx
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x407383
lea eax, [esi + 1]
test byte [esp + 0x40], 1
mov ecx, dword [esp + 0x30]
cmove ecx, eax
cmp byte [ecx + edi - 1], 0x2a
jne 0x407420
dec edi
mov ecx, esp
push edi
push 0
push esi
push edi
push 0
call fcn.00425db0
test eax, eax
jne 0x407420
mov al, 1
mov dword [esp + 0x18], eax
jmp 0x407383
call fcn.00429170
fstp qword [esp + 0xa8]
movsd xmm0, qword [esp + 0xa8]
movsd qword [esp + 0x40], xmm0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
movsd xmm0, qword [esp + 0x40]
subsd xmm0, qword [esp + 0x20]
sub esp, 0x10
movsd qword [esp + 8], xmm0
mov dword [esp], eax
mov dword [esp + 4], str.OKAY___7.3fs__n
call fcn.004018d0
add esp, 0x10
mov bl, 1
test byte [esp], 1
jne 0x4075e1
jmp 0x4075ed
inc edx
push edx
push ecx
push str.Update__s__s
push eax
call fcn.004018d0
add esp, 0x10
mov esi, dword [esp + 0x54]
jmp 0x4075a2
mov ecx, dword [esi + 8]
push ecx
push str._or__s
push eax
call fcn.004018d0
add esp, 0xc
add esi, 0xc
cmp esi, dword [esp + 0x58]
je 0x4075c0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esi], 1
jne 0x407590
lea ecx, [esi + 1]
jmp 0x407593
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push 0x581dfc
push eax
call fcn.004018d0
add esp, 8
xor ebx, ebx
test byte [esp], 1
je 0x4075ed
push dword [esp + 8]
call fcn.00420e70
add esp, 4
test bl, bl
mov edi, dword [esp + 0x78]
jne 0x407620
cmp byte [esp + 0x1f], 0
je 0x407769
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.requirements_not_met__but_proceeding_due_to___force_n
push eax
call fcn.004018d0
add esp, 8
nop dword [eax]
mov esi, dword [esp + 0x54]
test esi, esi
je 0x407673
mov eax, dword [esp + 0x58]
mov ecx, esi
cmp eax, esi
je 0x407666
mov ebx, edi
jmp 0x407646
mov eax, edi
cmp edi, esi
je 0x407660
lea edi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x407640
push dword [eax - 4]
call fcn.00420e70
add esp, 4
jmp 0x407640
mov ecx, dword [esp + 0x54]
mov edi, ebx
mov dword [esp + 0x58], esi
push ecx
call fcn.00420e70
add esp, 4
test byte [esp + 0x60], 1
je 0x407686
push dword [esp + 0x68]
call fcn.00420e70
add esp, 4
test byte [esp + 0x34], 1
je 0x406da0
push dword [esp + 0x3c]
call fcn.00420e70
add esp, 4
jmp 0x406da0
test byte [esp + 0x48], 1
je 0x4070cb
push dword [esp + 0x50]
call fcn.00420e70
add esp, 4
jmp 0x4070cb
mov eax, esi
cmp esi, edi
je 0x407737
lea esi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x4076c0
push dword [eax - 4]
call fcn.00420e70
add esp, 4
jmp 0x4076c0
mov edi, dword [esp + 0x88]
test edi, edi
jne 0x406d8a
test byte [esp + 0x6c], 1
je 0x4076fe
push dword [esp + 0x74]
call fcn.00420e70
add esp, 4
test byte [esp + 0x7c], 1
je 0x407714
push dword [esp + 0x84]
call fcn.00420e70
add esp, 4
mov eax, dword [esp + 0x98]
test eax, eax
je 0x40772f
mov dword [esp + 0x9c], eax
push eax
call fcn.00420e70
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x8c], edi
push ecx
call fcn.00420e70
add esp, 4
test byte [esp + 0x6c], 1
jne 0x4076f2
jmp 0x4076fe
test byte [edi], 1
je 0x40779c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
jmp 0x4077a0
push str.requirements_not_met_
call fcn.004291c0
test byte [esp + 0x48], 1
je 0x407786
push dword [esp + 0x50]
call fcn.00420e70
add esp, 4
mov edi, dword [esp + 0x10]
test byte [edi], 1
je 0x4077ae
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x10], eax
jmp 0x4077b2
inc dword [esp + 0x10]
push dword [esp + 0x10]
push str.device_requires_partition__s_which_is_not_known_to_this_version_of_fastboot
call fcn.004291c0
inc dword [esp + 0x10]
push dword [esp + 0x10]
push str.device_doesnt_have_required_partition__s_
call fcn.004291c0
push str.could_not_read_android_info.txt
call fcn.004291c0
lea ecx, [esp + 0x7c]
call fcn.00423df0
nop word cs:[eax + eax]