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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x10100
call fcn.00526390
mov dword [esp + 8], edx
mov edi, ecx
xorps xmm0, xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
lea eax, [esp + 0xa0]
push eax
push ecx
call fcn.004796c0
add esp, 8
cmp eax, 0xffffffff
je 0x409395
push 0
push edi
call fcn.0046ff90
add esp, 8
mov dword [esp + 0x14], edi
mov ebx, eax
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov esi, dword [eax]
call edi
mov dword [eax], esi
mov dword [esp + 0x38], ebx
cmp ebx, 0xffffffff
je 0x4093cc
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
mov eax, str.rescue_install
mov ecx, str.sideload_host
cmp byte [esp + 8], 0
cmovne ecx, eax
lea eax, [esp + 0x50]
push 0x10000
push dword [esp + 0xc0]
push dword [esp + 0xc0]
push ecx
push str._s:_lld:_d
push eax
call fcn.004ba8a0
add esp, 0x18
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
movzx eax, byte [esp + 0x50]
test al, 1
je 0x409406
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
jmp 0x40940c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push edi
push str.adb:_failed_to_stat_file__s:__s_n
push esi
call fcn.00476b90
add esp, 0x10
mov ebx, 0xffffffff
jmp 0x40973d
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call edi
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push dword [esp + 0x18]
push str.adb:_failed_to_open_file__s:__s_n
push esi
call fcn.00476b90
add esp, 0x10
call edi
mov esi, dword [eax]
mov ebx, 0xffffffff
jmp 0x409735
shr eax, 1
lea ecx, [esp + 0x51]
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ecx
sub esp, 0xc
movsd xmm0, qword [esp + 0x9c]
movsd qword [esp], xmm0
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
call fcn.00401a50
add esp, 0xc
mov ebx, eax
call edi
mov esi, dword [eax]
call edi
mov dword [eax], esi
test ebx, ebx
mov dword [esp + 0x64], ebx
js 0x409688
mov dword [esp + 0x18], 0x10000
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x18]
push 4
push ecx
push 0x1001
push 0xffff
push eax
call fcn.00473ff0
add esp, 0x14
lea edi, [esp + 0xfc]
push 0x10000
push 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x3c]
push 8
push edi
push eax
call fcn.00445f90
add esp, 0xc
test al, al
je 0x4096a7
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x4094f3
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x3c]
push 8
lea edi, [esp + 0x100]
push edi
push eax
call fcn.00445f90
add esp, 0xc
test al, al
je 0x4096a7
mov byte [esp + 0x104], 0
push 9
push edi
push str.DONEDONE
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4097fa
push 9
push edi
push str.FAILFAIL
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4097fa
push 0xa
push 0
push edi
call fcn.00527130
add esp, 0xc
mov ebx, eax
mov esi, edx
shld esi, eax, 0x10
mov dword [esp + 0x24], eax
shl ebx, 0x10
mov edi, dword [esp + 0xb8]
cmp ebx, edi
mov eax, dword [esp + 0xbc]
mov ecx, esi
sbb ecx, eax
jge 0x409abe
mov ecx, ebx
add ecx, 0x10000
mov edx, esi
adc edx, 0
cmp edi, ecx
sbb eax, edx
mov eax, dword [esp + 0x38]
jl 0x409590
mov dword [esp + 0x24], 0x10000
jmp 0x409596
sub edi, ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x78], eax
mov edi, eax
mov eax, dword [esp + 0x78]
push 0
push esi
push ebx
push eax
call fcn.004711e0
add esp, 0x10
xor edx, esi
xor eax, ebx
or eax, edx
jne 0x409af3
mov dword [esp + 0x74], edi
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x24]
push edi
lea esi, [esp + 0x100]
push esi
push eax
call fcn.00445f90
add esp, 0xc
test al, al
je 0x409b1b
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x70]
push edi
push esi
push eax
call fcn.004462f0
add esp, 0xc
test al, al
je 0x409b43
mov eax, dword [esp + 8]
add eax, edi
mov esi, dword [esp + 4]
adc esi, 0
mov dword [esp + 8], eax
mov ecx, 0x2f
mul ecx
mov dword [esp + 4], esi
imul ecx, esi, 0x2f
add ecx, edx
mov edx, dword [esp + 0xb8]
mov esi, dword [esp + 0xbc]
mov edi, edx
or edi, esi
mov edi, 1
cmove edx, edi
mov edi, 0
cmove esi, edi
push esi
push edx
push ecx
push eax
call fcn.005263c0
add esp, 0x10
cmp dword [esp + 0x60], eax
je 0x4094d0
mov edi, eax
push eax
push dword [esp + 0x18]
push str._rserving:__s____d___
call fcn.00476bb0
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
mov dword [esp + 0x60], edi
jmp 0x4094d0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esp + 0x28], 1
je 0x409747
mov ecx, dword [esp + 0x30]
jmp 0x40974b
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push str.adb:_failed_to_read_command:__s_n
push esi
call fcn.00476b90
add esp, 0xc
mov ebx, 0xffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
mov eax, dword [esp + 0x64]
cmp eax, 0xffffffff
je 0x4096f2
push eax
call fcn.00448c60
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
test byte [esp + 0x28], 1
mov edi, dword [esp + 0x38]
je 0x409711
push dword [esp + 0x30]
call fcn.0051c570
add esp, 4
test byte [esp + 0x50], 1
je 0x409724
push dword [esp + 0x58]
call fcn.0051c570
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
push edi
call fcn.00448c60
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x29]
push ecx
push str.adb:_sideload_connection_failed:__s_n
push eax
call fcn.00476b90
add esp, 0xc
mov ebx, 0xffffffff
cmp byte [esp + 8], 0
jne 0x4096d8
xor eax, eax
mov ecx, 0x7fffffff
cmp ecx, dword [esp + 0xb8]
sbb eax, dword [esp + 0xbc]
jl 0x4096d8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.adb:_trying_pre_KitKat_sideload_method..._n
push eax
call fcn.00476b90
add esp, 8
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
lea eax, [esp + 0xfc]
mov dword [esp + 8], ecx
push ecx
push str.sideload:_d
push eax
call fcn.004ba8a0
add esp, 0xc
movzx eax, byte [esp + 0xfc]
test al, 1
je 0x4098ce
mov ecx, dword [esp + 0x104]
mov eax, dword [esp + 0x100]
jmp 0x4098d7
movss xmm0, dword [esp + 8]
movss xmm1, dword [esp + 4]
unpcklps xmm0, xmm1
movlps qword [esp + 0xf0], xmm0
fild qword [esp + 0xf0]
fstp qword [esp + 0xe8]
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
xor edx, edx
mov esi, eax
or esi, ecx
cmovne edx, ecx
movsd xmm2, qword [esp + 0xe8]
mov ecx, 1
cmovne ecx, eax
movd xmm0, edx
movd xmm1, ecx
punpckldq xmm1, xmm0
movq qword [esp + 0xe0], xmm1
fild qword [esp + 0xe0]
fstp qword [esp + 0xd8]
divsd xmm2, qword [esp + 0xd8]
movsd qword [esp + 8], xmm2
push dword [esp + 0x14]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, 0xa
sub esp, 0x14
mov dword [esp + 0xc], eax
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x10], 0x861ef0
mov dword [esp], str._rTotal_xfer:__.2fx_s_n
call fcn.00476bb0
add esp, 0x14
push 9
push edi
push str.FAILFAIL
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
xor ebx, ebx
test eax, eax
sete bl
jmp 0x4096d8
shr eax, 1
lea ecx, [esp + 0xfd]
mov dword [esp + 0x9c], eax
mov dword [esp + 0x98], ecx
sub esp, 0xc
movsd xmm0, qword [esp + 0xa4]
movsd qword [esp], xmm0
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
call fcn.00401a50
add esp, 0xc
mov ebx, eax
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov esi, dword [eax]
call edi
mov dword [eax], esi
test byte [esp + 0xfc], 1
je 0x40992f
push dword [esp + 0x104]
call fcn.0051c570
add esp, 4
mov edi, ebx
test ebx, ebx
lea esi, [esp + 0xfc]
js 0x409a9f
mov dword [esp + 0x68], 0x10000
mov dword [esp + 4], edi
mov dword [esp + 0x8c], edi
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0x68]
push 4
push ecx
push 0x1001
push 0xffff
push eax
call fcn.00473ff0
add esp, 0x14
mov dword [esp + 0x68], eax
push 0x10000
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
cmp dword [esp + 8], 0
jle 0x409a4f
mov esi, dword [esp + 8]
nop word [eax + eax]
cmp esi, 0x10000
mov edi, 0x10000
cmovl edi, esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x88]
push edi
lea ebx, [esp + 0x100]
push ebx
push eax
call fcn.00445f90
add esp, 0xc
test al, al
je 0x409b87
mov eax, dword [esp + 4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
push edi
push ebx
push eax
call fcn.004462f0
add esp, 0xc
test al, al
je 0x409bc2
sub esi, edi
mov eax, esi
mov ecx, 0x64
imul ecx
push 0
push dword [esp + 0xc]
push edx
push eax
call fcn.005263c0
add esp, 0x10
mov ecx, 0x64
sub ecx, eax
push ecx
push dword [esp + 0x18]
push str.sending:__s__4d_______r
call fcn.00476bb0
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
test esi, esi
jg 0x4099a0
push 0x8652ff
call fcn.00476bb0
add esp, 4
mov edi, dword [esp + 4]
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x40]
xor ebx, ebx
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.00401630
add esp, 8
test al, al
jne 0x409c3a
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esp + 0x18], 1
je 0x409c22
mov ecx, dword [esp + 0x20]
jmp 0x409c26
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esp + 0x18], 1
je 0x409b78
mov ecx, dword [esp + 0x20]
jmp 0x409b7c
push 2
mov edi, edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [esp + 0xbc]
push dword [esp + 0xbc]
push esi
push ebx
push edi
push dword [esp + 0x38]
push str.adb:_failed_to_read_block__lld_at_offset__lld__past_end__lld_n
push eax
call fcn.00476b90
add esp, 0x20
jmp 0x4096d3
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push str.adb:_failed_to_seek_to_package_block:__s_n
jmp 0x4096ca
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push str.adb:_failed_to_read_package_block:__s_n
jmp 0x4096ca
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x28]
push ecx
push eax
call fcn.00401630
add esp, 8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esp + 0x28], 1
je 0x409c12
mov ecx, dword [esp + 0x30]
jmp 0x409c16
lea ecx, [esp + 0x19]
push ecx
push str.adb:_pre_KitKat_sideload_connection_failed:__s_n
jmp 0x409c2c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push dword [esp + 0x18]
push str.adb:_failed_to_read_data_from__s:__s_n
push esi
call fcn.00476b90
add esp, 0x10
mov ebx, 0xffffffff
mov edi, dword [esp + 4]
jmp 0x409c3a
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov edi, dword [esp + 4]
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.00401630
add esp, 8
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
test byte [esp + 0x40], 1
je 0x409c74
mov ecx, dword [esp + 0x48]
jmp 0x409c78
lea ecx, [esp + 0x29]
push ecx
push str.adb:_failed_to_write_data__s__n
push eax
jmp 0x4096cb
lea ecx, [esp + 0x19]
push ecx
push str.adb:_error_response:__s_n
push eax
call fcn.00476b90
add esp, 0xc
mov ebx, 0xffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
cmp edi, 0xffffffff
je 0x409c50
push edi
call fcn.00448c60
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
test byte [esp + 0x18], 1
je 0x4096d8
push dword [esp + 0x20]
call fcn.0051c570
add esp, 4
jmp 0x4096d8
lea ecx, [esp + 0x41]
push ecx
push str.adb:_failed_to_write_data:__s_n
push eax
call fcn.00476b90
add esp, 0xc
test byte [esp + 0x40], 1
je 0x409c35
push dword [esp + 0x48]
call fcn.0051c570
add esp, 4
jmp 0x409c35