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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x98], 0
mov esi, dword [ecx]
push 0x20
call fcn.00417780
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x21
mov dword [esp + 0xc], 0x10
mov dword [eax + 0xc], 0x7478742e
mov dword [eax + 8], 0x6f666e69
mov dword [eax + 4], 0x2d64696f
mov dword [eax], 0x72646e61
mov byte [eax + 0x10], 0
lea edx, [esp + 0x90]
lea edi, [esp + 8]
mov ecx, esi
mov eax, dword [esi]
push edx
push edi
call dword [eax]
test byte [esp + 8], 1
mov ebx, eax
je 0x4027d7
push dword [esp + 0x10]
call fcn.00417920
add esp, 4
test bl, bl
je 0x40334d
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
sub ebx, ecx
cmp ebx, 0xfffffff0
jae 0x403357
cmp ebx, 0xb
jae 0x402827
mov eax, ebx
lea esi, [esp + 0x71]
add al, bl
test ebx, ebx
mov byte [esp + 0x70], al
jne 0x40284b
jmp 0x402856
lea edi, [ebx + 0x10]
and edi, 0xfffffff0
push edi
mov esi, ecx
call fcn.00417780
mov ecx, esi
add esp, 4
or edi, 1
mov dword [esp + 0x78], eax
mov esi, eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebx
push ebx
push ecx
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov ecx, dword [0x5494f4]
mov dword [esp + 8], 0
mov byte [esi + ebx], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov byte [esp + 8], 0xe
mov dword [esp + 0xc], 0x74637564
mov dword [esp + 9], 0x646f7270
mov byte [esp + 0x10], 0
lea eax, [esp + 0x60]
push 0
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00460360
test byte [esp + 8], 1
mov esi, eax
je 0x4028d0
push dword [esp + 0x10]
call fcn.00417920
add esp, 4
test esi, esi
je 0x402923
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
lea ecx, [esp + 8]
push dword [0x5494f4]
call fcn.004627a0
test byte [esp + 8], 1
je 0x4028fd
mov eax, dword [esp + 0x10]
jmp 0x402901
lea eax, [esp + 9]
push eax
push str.getvar:product_FAILED___s__n
push esi
call fcn.0040cce0
add esp, 0xc
test byte [esp + 8], 1
je 0x402923
push dword [esp + 0x10]
call fcn.00417920
add esp, 4
lea edx, [esp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov word [esp + 8], 0xa02
mov byte [esp + 0xa], 0
lea eax, [esp + 0x70]
lea ecx, [esp + 0x80]
push edx
push eax
push ecx
call fcn.0045e200
add esp, 0xc
test byte [esp + 8], 1
je 0x402995
push dword [esp + 0x10]
call fcn.00417920
add esp, 4
mov eax, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
cmp edi, eax
mov dword [esp + 0xa4], eax
je 0x403159
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea eax, [esp + 9]
mov dword [esp + 0x8c], eax
jmp 0x4029e0
add edi, 0xc
cmp edi, dword [esp + 0xa4]
je 0x403152
movzx eax, byte [edi]
test al, 1
jne 0x4029f0
shr eax, 1
test eax, eax
jne 0x4029f7
jmp 0x4029d0
mov eax, dword [edi + 4]
test eax, eax
je 0x4029d0
lea eax, [esp + 0x28]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov byte [esp + 0x1b], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
push eax
lea eax, [esp + 0x1f]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x44]
push eax
push edi
call fcn.004016f0
add esp, 0x14
test al, al
mov dword [esp + 0x1c], edi
je 0x402a80
movzx eax, byte [esp + 0x38]
test al, 1
je 0x402a98
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
je 0x402a9f
jmp 0x402abb
push 2
call ebx
add esp, 4
test byte [edi], 1
jne 0x402b1e
lea ecx, [edi + 1]
jmp 0x402b21
shr eax, 1
cmp eax, 0x10
jne 0x402abb
lea ecx, [esp + 0x38]
push 0x10
push str.partition_exists
push 0xffffffffffffffff
push 0
call fcn.0041ef70
test eax, eax
je 0x402c68
mov al, byte [esp + 0x1b]
mov byte [esp + 7], al
lea eax, [esp + 0x38]
push eax
push str.Checking_
lea esi, [esp + 0x5c]
push esi
call fcn.004213d0
add esp, 0xc
mov ecx, esi
push 0x520bac
call fcn.0041dba0
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 8], xmm0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0
movzx eax, byte [esp + 8]
test al, 1
je 0x402b70
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x402b76
jmp 0x402b9b
mov ecx, dword [edi + 8]
push ecx
push str.android_info.txt_syntax_error:__s_n
push eax
call fcn.0040cce0
add esp, 0xc
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4030c5
mov eax, dword [esp + 0x2c]
cmp eax, esi
jne 0x402b5a
jmp 0x40307e
cmp esi, edi
mov eax, edi
je 0x4030b0
test byte [eax - 0xc], 1
lea edi, [eax - 0xc]
je 0x402b50
push dword [eax - 4]
call fcn.00417920
add esp, 4
jmp 0x402b50
shr eax, 1
test eax, eax
je 0x402b9b
push 2
call ebx
add esp, 4
test byte [esp + 8], 1
lea ecx, [esp + 9]
je 0x402b8c
mov ecx, dword [esp + 0x10]
push ecx
push str.__50s
push eax
call fcn.0040cce0
add esp, 0xc
call fcn.00423720
fstp qword [0x5494f8]
test byte [esp + 8], 1
je 0x402bb9
push dword [esp + 0x10]
call fcn.00417920
add esp, 4
test byte [esp + 0x54], 1
je 0x402bcc
push dword [esp + 0x5c]
call fcn.00417920
add esp, 4
call fcn.00423720
fstp qword [esp + 0xc0]
movzx ecx, byte [esp + 0x48]
movsd xmm0, qword [esp + 0xc0]
mov eax, ecx
movsd qword [esp + 0xa8], xmm0
shr eax, 1
test cl, 1
mov edx, eax
je 0x402bfe
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x402e5b
movzx ebx, byte [esp + 0x60]
test bl, 1
je 0x402c1d
mov esi, dword [esp + 0x64]
cmp edx, esi
je 0x402c29
jmp 0x402ddd
mov esi, ebx
shr esi, 1
cmp edx, esi
jne 0x402ddd
test bl, 1
lea esi, [esp + 0x61]
je 0x402c36
mov esi, dword [esp + 0x68]
test cl, 1
jne 0x402dcb
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx edx, byte [esp + ecx + 0x49]
cmp dl, byte [esi + ecx]
jne 0x402ddd
inc ecx
cmp eax, ecx
jne 0x402c50
jmp 0x402e5b
mov esi, dword [esp + 0x28]
mov ebx, dword [0x5494f4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
push esi
push str.has_slot:
lea edi, [esp + 0x5c]
push edi
call fcn.004213d0
add esp, 0xc
mov ecx, ebx
push 0
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00460360
test eax, eax
jne 0x40321d
movzx ecx, byte [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, ecx
mov edi, edx
shr eax, 1
and cl, 1
cmove edi, eax
cmp edi, 3
jne 0x402cfa
lea ecx, [esp + 8]
push 3
push 0x520a66
push 0xffffffffffffffff
push 0
call fcn.0041ef70
test eax, eax
je 0x4030f4
movzx eax, byte [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
shr eax, 1
and cl, 1
test cl, cl
mov bl, 1
cmovne eax, edx
cmp eax, 2
jne 0x402d1f
lea ecx, [esp + 8]
push 2
push 0x520a75
push 0xffffffffffffffff
push 0
call fcn.0041ef70
test eax, eax
setne bl
test byte [esp + 0x54], 1
je 0x402d32
push dword [esp + 0x5c]
call fcn.00417920
add esp, 4
test bl, bl
jne 0x403230
mov ebx, 0xfffffe20
mov dword [esp + 0x20], 0
jmp 0x402d55
add ebx, 0x18
je 0x402da6
mov edi, dword [ebx + 0x549268]
test edi, edi
je 0x402d50
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
movzx ecx, byte [esi]
test cl, 1
je 0x402d80
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x402d50
jmp 0x402d86
shr ecx, 1
cmp eax, ecx
jne 0x402d50
mov ecx, esi
push eax
push edi
push 0xffffffffffffffff
push 0
call fcn.0041ef70
test eax, eax
jne 0x402d50
mov al, 1
mov byte [ebx + 0x549278], 0
mov dword [esp + 0x20], eax
jmp 0x402d50
test byte [esp + 0x20], 1
je 0x403345
test byte [esp + 8], 1
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edi, dword [esp + 0x1c]
je 0x40306e
jmp 0x403062
push edx
push esi
push dword [esp + 0x58]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x402e5b
call fcn.00423720
fstp qword [esp + 0xb8]
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp + 0x20], xmm0
push 2
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call ebx
add esp, 4
test byte [esp + 0x60], 1
lea ecx, [esp + 0x61]
je 0x402e14
mov ecx, dword [esp + 0x68]
test byte [esp + 0x48], 1
lea edx, [esp + 0x49]
je 0x402e23
mov edx, dword [esp + 0x50]
movsd xmm0, qword [esp + 0x20]
subsd xmm0, qword [esp + 0xa8]
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.0040cce0
add esp, 0x18
jmp 0x40306e
mov ecx, dword [0x5494f4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00460360
test eax, eax
jne 0x4031ec
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ch, byte [esp + 7]
cmp esi, eax
mov dword [esp + 0x9c], eax
jne 0x402ee9
xor ebx, ebx
cmp bl, ch
jne 0x403008
jmp 0x40311c
dec eax
lea ecx, [esp + 8]
push eax
push 0
push esi
push eax
push 0
call fcn.0041ee00
mov ch, byte [esp + 7]
test eax, eax
je 0x402ffe
add esi, 0xc
cmp esi, dword [esp + 0x9c]
je 0x402ea9
movzx edx, byte [esi]
movzx ebx, byte [esp + 8]
mov eax, edx
mov dword [esp + 0x20], edx
shr eax, 1
test dl, 1
mov edx, dword [esi + 4]
mov dword [esp + 0xa0], edx
cmove edx, eax
test bl, 1
je 0x402f20
mov edi, dword [esp + 0xc]
cmp edx, edi
je 0x402f28
jmp 0x402f80
mov edi, ebx
shr edi, 1
cmp edx, edi
jne 0x402f80
test bl, 1
mov ebx, dword [esi + 8]
lea ecx, [esi + 1]
lea edi, [esp + 9]
mov dword [esp + 0x7c], ecx
je 0x402f3f
mov edi, dword [esp + 0x10]
test byte [esp + 0x20], 1
mov ecx, dword [esp + 0x7c]
cmovne ecx, ebx
mov dword [esp + 0x7c], ecx
jne 0x402fb0
mov ch, byte [esp + 7]
mov bl, 1
test edx, edx
je 0x403110
mov edx, dword [esp + 0x20]
xor ebx, ebx
shr edx, 1
nop word [eax + eax]
mov cl, byte [esi + ebx + 1]
cmp cl, byte [edi + ebx]
jne 0x402f80
inc ebx
cmp edx, ebx
jne 0x402f70
jmp 0x402ffa
test byte [esp + 0x20], 1
jne 0x402fa0
cmp byte [esi + eax], 0x2a
mov edi, dword [esp + 0x1c]
je 0x402ec0
jmp 0x402edd
mov edx, dword [esi + 8]
mov edi, dword [esp + 0x1c]
jmp 0x402fe3
mov ch, byte [esp + 7]
mov dword [esp + 0x20], ebx
mov bl, 1
test edx, edx
je 0x403110
push edx
push edi
push dword [esp + 0x84]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov ch, byte [esp + 0x13]
add esp, 0xc
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
je 0x403000
mov eax, dword [esp + 0xa0]
cmp byte [edx + eax - 1], 0x2a
je 0x402ec0
jmp 0x402edd
mov edi, dword [esp + 0x1c]
mov bl, 1
cmp bl, ch
je 0x40311c
call fcn.00423720
fstp qword [esp + 0xb0]
movsd xmm0, qword [esp + 0xb0]
movsd qword [esp + 0x20], xmm0
push 2
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call ebx
add esp, 4
movsd xmm0, qword [esp + 0x20]
subsd xmm0, qword [esp + 0xa8]
sub esp, 0x10
movsd qword [esp + 8], xmm0
mov dword [esp], eax
mov dword [esp + 4], str.OKAY___7.3fs__n
call fcn.0040cce0
add esp, 0x10
test byte [esp + 8], 1
je 0x40306e
push dword [esp + 0x10]
call fcn.00417920
add esp, 4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4030c5
mov eax, dword [esp + 0x2c]
cmp eax, esi
jne 0x403096
mov eax, esi
jmp 0x4030b8
cmp esi, edi
mov eax, edi
je 0x4030b0
test byte [eax - 0xc], 1
lea edi, [eax - 0xc]
je 0x403090
push dword [eax - 4]
call fcn.00417920
add esp, 4
jmp 0x403090
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
push eax
call fcn.00417920
add esp, 4
test byte [esp + 0x48], 1
je 0x4030d8
push dword [esp + 0x50]
call fcn.00417920
add esp, 4
test byte [esp + 0x38], 1
je 0x4029d0
push dword [esp + 0x40]
call fcn.00417920
add esp, 4
jmp 0x4029d0
test byte [esp + 0x54], 1
je 0x402d3a
push dword [esp + 0x5c]
call fcn.00417920
add esp, 4
jmp 0x402d3a
mov edi, dword [esp + 0x1c]
cmp bl, ch
jne 0x403008
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.0040cce0
add esp, 8
push 2
call esi
add esp, 4
test byte [esp + 0x38], 1
je 0x403238
mov ecx, dword [esp + 0x40]
jmp 0x40323c
mov edi, dword [esp + 0x80]
test edi, edi
je 0x4031a3
mov eax, dword [esp + 0x84]
cmp eax, edi
jne 0x403176
mov eax, edi
jmp 0x403193
cmp edi, esi
mov eax, esi
je 0x40318c
test byte [eax - 0xc], 1
lea esi, [eax - 0xc]
je 0x403170
push dword [eax - 4]
call fcn.00417920
add esp, 4
jmp 0x403170
mov eax, dword [esp + 0x80]
mov dword [esp + 0x84], edi
push eax
call fcn.00417920
add esp, 4
test byte [esp + 0x60], 1
je 0x4031b6
push dword [esp + 0x68]
call fcn.00417920
add esp, 4
test byte [esp + 0x70], 1
je 0x4031c9
push dword [esp + 0x78]
call fcn.00417920
add esp, 4
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4031e4
mov dword [esp + 0x94], eax
push eax
call fcn.00417920
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
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.0040cce0
add esp, 8
push 2
call esi
add esp, 4
test byte [esp + 0x38], 1
mov esi, eax
je 0x40328d
mov ebx, dword [esp + 0x40]
jmp 0x403291
test byte [esp + 0x54], 1
je 0x403230
push dword [esp + 0x5c]
call fcn.00417920
add esp, 4
test byte [esi], 1
jne 0x4032af
inc esi
jmp 0x4032b2
lea ecx, [esp + 0x39]
test byte [esp + 8], 1
je 0x40324e
mov edx, dword [esp + 0x10]
mov dword [esp + 0x8c], edx
push dword [esp + 0x8c]
push ecx
push str.Device__s_is__s._n
push eax
call fcn.0040cce0
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 + 7], 0
mov edx, str.requires
mov ecx, str.rejects
cmove ecx, edx
mov edx, dword [esp + 0x28]
test byte [edx], 1
jne 0x4032bd
inc edx
jmp 0x4032c0
lea ebx, [esp + 0x39]
lea edi, [esp + 0x54]
mov ecx, edi
push dword [0x5494f4]
call fcn.004627a0
test byte [esp + 0x54], 1
je 0x403320
mov eax, dword [esp + 0x5c]
jmp 0x403324
mov esi, dword [esi + 8]
push esi
push str.device_doesnt_have_required_partition__s_
call fcn.00423770
mov edx, dword [edx + 8]
push edx
push ecx
push str.Update__s__s
push eax
call fcn.0040cce0
add esp, 0x10
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
add esi, 0xc
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, edi
je 0x403308
test byte [esi], 1
jne 0x4032f4
lea ecx, [esi + 1]
jmp 0x4032f7
mov ecx, dword [esi + 8]
push ecx
push str._or__s
push eax
call fcn.0040cce0
add esp, 0xc
jmp 0x4032d4
push 0x520c6f
push eax
call fcn.0040cce0
add esp, 8
push str.requirements_not_met_
call fcn.00423770
lea eax, [esp + 0x55]
push eax
push ebx
push str.Could_not_getvar_for__s___s__n_n
push esi
call fcn.0040cce0
add esp, 0x10
mov ecx, edi
call fcn.0041d3c0
push str.requirements_not_met_
call fcn.00423770
test byte [esi], 1
jne 0x403360
inc esi
jmp 0x403363
push str.could_not_read_android_info.txt
call fcn.00423770
lea ecx, [esp + 0x70]
call fcn.0041ce60
mov esi, dword [esi + 8]
push esi
push str.device_requires_partition__s_which_is_not_known_to_this_version_of_fastboot
call fcn.00423770
nop