Function at 0x4031c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
cmp dword [ebp + 8], 3
jge 0x40392f
mov ebx, ecx
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0xf4], 0x861afc
lea eax, [esp + 0xc0]
mov dword [esp + 0xf8], eax
lea esi, [esp + 0xd8]
mov dword [esp + 0xfc], esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
push 0x10
call fcn.0051c3d0
add esp, 4
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], 0x11
mov dword [esp + 0x64], 0xd
mov word [eax + 0xc], 0x76
mov dword [eax + 8], 0x2d207a74
mov dword [eax + 4], 0x726f7065
mov dword [eax], 0x72677562
mov eax, dword [ebx]
lea edx, [esp + 0xf4]
lea edi, [esp + 0x60]
mov dword [esp + 4], ebx
mov ecx, ebx
push edx
push 0
push edi
call dword [eax]
mov ebx, eax
test byte [esp + 0x60], 1
je 0x4032cd
push dword [esp + 0x68]
call fcn.0051c570
add esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
lea eax, [esp + 8]
push esi
push eax
call fcn.00403b00
add esp, 8
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc0]
push ecx
push eax
call fcn.00403b00
add esp, 8
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
test ebx, ebx
je 0x4033c0
mov eax, dword [0x86159c]
test byte [eax], 1
jne 0x4038da
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp dword [ebp + 8], 1
jne 0x4033b3
push str.Failed_to_get_bugreportz_version__which_is_only_available_on_devices_running_Android_7.0_or_later._nTrying_a_plain_text_bug_report_instead._n
push eax
call fcn.00476b90
add esp, 8
mov dword [esp + 0x68], 0
mov byte [esp + 0x60], 0x12
mov dword [esp + 0x61], 0x72677562
mov dword [esp + 0x65], 0x726f7065
mov byte [esp + 0x69], 0x74
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
mov edx, dword [0x861ba4]
push edx
push 0
lea edx, [esp + 0x68]
push edx
call dword [eax]
mov esi, eax
test byte [esp + 0x60], 1
je 0x403823
push dword [esp + 0x68]
jmp 0x40381b
test byte [esp + 0x28], 1
je 0x4033d6
mov ecx, dword [esp + 0x30]
jmp 0x4033da
movzx eax, byte [esp + 8]
test al, 1
je 0x4033f8
mov ecx, dword [esp + 0xc]
test ecx, ecx
jne 0x403404
jmp 0x403338
lea ecx, [esp + 0x29]
push ebx
push ecx
push str.Failed_to_get_bugreportz_version:_bugreportz__v_returned__s__code__d_._nIf_the_device_does_not_run_Android_7.0_or_above__try_this_instead:_n_tadb_bugreport___bugreport.txt_n
push eax
call fcn.00476b90
add esp, 0x10
xor esi, esi
cmp ebx, 1
sbb esi, esi
or esi, ebx
jmp 0x403823
mov ecx, eax
shr ecx, 1
test ecx, ecx
je 0x403338
test al, 1
je 0x40340e
mov eax, dword [esp + 0x10]
jmp 0x403412
lea eax, [esp + 9]
mov esi, dword [esp + 4]
mov edi, dword [ebp + 8]
sub esp, 0x10
lea ecx, [esp + 0x58]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.004039b0
add esp, 0x10
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
cmp edi, 1
jne 0x403498
lea eax, [esp + 0x50]
push eax
call fcn.00448db0
add esp, 4
test al, al
jne 0x403598
push str.adb:_getcwd_failed
call sub.api_ms_win_crt_runtime_l1_1_0.dll_perror
add esp, 4
mov esi, 1
jmp 0x4037fd
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push str.__stream
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x4034f7
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x403999
mov ebx, eax
mov dword [esp + 0x38], edi
cmp eax, 0xb
jae 0x403528
mov eax, ebx
add al, bl
mov byte [esp + 0x60], al
lea edi, [esp + 0x61]
test ebx, ebx
jne 0x40354a
jmp 0x403558
cmp dword [esp + 0x4c], 1
jne 0x4038a4
cmp dword [esp + 0x48], 1
jg 0x4038a4
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.Failed_to_stream_bugreport:_bugreportz_does_not_support_stream._n
push eax
call fcn.00476b90
add esp, 8
jmp 0x403598
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
call fcn.0051c3d0
add esp, 4
mov edi, eax
mov dword [esp + 0x68], eax
add esi, 2
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
push ebx
push dword [esp + 0x3c]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
lea eax, [esp + 0x60]
push eax
call fcn.00448df0
add esp, 4
mov ebx, eax
test byte [esp + 0x60], 1
je 0x40357e
push dword [esp + 0x68]
call fcn.0051c570
add esp, 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
test bl, bl
je 0x40358e
lea ecx, [esp + 0x50]
jmp 0x403592
lea ecx, [esp + 0x18]
push eax
call fcn.005205a0
movzx ecx, byte [esp + 0x18]
test cl, 1
je 0x4035b5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4035bd
test cl, 1
je 0x4035cd
mov ecx, dword [esp + 0x20]
jmp 0x4035d1
mov eax, ecx
shr eax, 1
test eax, eax
jne 0x4035aa
lea ecx, [esp + 0x18]
push str.bugreport.zip
call fcn.005205a0
jmp 0x40362f
lea ecx, [esp + 0x19]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xec], ecx
mov dword [esp + 0xe4], str..zip
mov dword [esp + 0xe8], 4
sub esp, 0x10
movsd xmm0, qword [esp + 0xf4]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xfc]
movsd qword [esp], xmm0
call fcn.004bad50
add esp, 0x10
test al, al
jne 0x40362f
lea ecx, [esp + 0x18]
push str..zip
call fcn.00520360
push 0x10
call fcn.0051c3d0
add esp, 4
mov dword [esp + 0xd4], eax
mov dword [esp + 0xcc], 0x11
mov dword [esp + 0xd0], 0xd
mov word [eax + 0xc], 0x70
mov dword [eax + 8], 0x2d207a74
mov dword [eax + 4], 0x726f7065
mov dword [eax], 0x72677562
movzx eax, byte [esp + 8]
test al, 1
je 0x40367f
mov eax, dword [esp + 0xc]
jmp 0x403681
shr eax, 1
mov bl, 1
cmp eax, 3
jne 0x4036cc
lea ecx, [esp + 8]
push 3
push 0x861826
push 0xffffffffffffffff
push 0
call fcn.00521750
test eax, eax
jne 0x4036cc
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.Bugreport_is_in_progress_and_it_could_take_minutes_to_complete._nPlease_be_patient_and_do_not_cancel_or_disconnect_your_device_until_it_completes._n
push eax
call fcn.00476b90
add esp, 8
lea ecx, [esp + 0xcc]
push str.bugreportz
call fcn.005205a0
xor ebx, ebx
lea ecx, [esp + 0x74]
xorps xmm0, xmm0
movups xmmword [esp + 0xa4], xmm0
movups xmmword [esp + 0x94], xmm0
movups xmmword [esp + 0x84], xmm0
movups xmmword [esp + 0x74], xmm0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0x60], 0x861b68
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
lea eax, [esp + 0x50]
push eax
call fcn.0051f860
lea ecx, [esp + 0x80]
lea eax, [esp + 0x18]
push eax
call fcn.0051f860
xorps xmm0, xmm0
movups xmmword [esp + 0x8c], xmm0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov byte [esp + 0xa4], bl
movups xmmword [esp + 0xa8], xmm0
mov dword [esp + 0xb8], 0
mov byte [esp + 0x3c], 0x14
mov dword [esp + 0x3d], 0x656e6567
mov dword [esp + 0x41], 0x69746172
mov word [esp + 0x45], 0x676e
mov byte [esp + 0x47], 0
lea eax, [esp + 0x3c]
lea edi, [esp + 0x60]
mov ecx, edi
push eax
call fcn.00403dc0
test byte [esp + 0x3c], 1
je 0x4037c8
push dword [esp + 0x44]
call fcn.0051c570
add esp, 4
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
lea edx, [esp + 0xcc]
push edi
push 0
push edx
call dword [eax]
mov esi, eax
mov ecx, edi
call fcn.00403c30
test byte [esp + 0xcc], 1
je 0x4037fd
push dword [esp + 0xd4]
call fcn.0051c570
add esp, 4
test byte [esp + 0x50], 1
je 0x403810
push dword [esp + 0x58]
call fcn.0051c570
add esp, 4
test byte [esp + 0x18], 1
je 0x403823
push dword [esp + 0x20]
call fcn.0051c570
add esp, 4
test byte [esp + 0x28], 1
jne 0x403860
test byte [esp + 8], 1
jne 0x403873
test byte [esp + 0xd8], 1
jne 0x403889
test byte [esp + 0xc0], 1
je 0x403854
push dword [esp + 0xc8]
call fcn.0051c570
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
push dword [esp + 0x30]
call fcn.0051c570
add esp, 4
test byte [esp + 8], 1
je 0x403831
push dword [esp + 0x10]
call fcn.0051c570
add esp, 4
test byte [esp + 0xd8], 1
je 0x40383b
push dword [esp + 0xe0]
call fcn.0051c570
add esp, 4
test byte [esp + 0xc0], 1
jne 0x403845
jmp 0x403854
lea edi, [esp + 0x60]
mov ecx, edi
push str.bugreportz__s
call fcn.00403a80
mov eax, dword [esi]
mov edx, dword [0x861ba4]
mov ecx, esi
push edx
push 0
push edi
call dword [eax]
mov esi, eax
test byte [esp + 0x60], 1
je 0x4037fd
push dword [esp + 0x68]
jmp 0x4037f5
push 0
push 1
call fcn.004b9f30
add esp, 8
test al, al
je 0x403346
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
sub esp, 0x14
movaps xmm0, xmmword [0x8615a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], str.packages_modules_adb_client_bugreport.cpp
lea esi, [esp + 0x50]
mov ecx, esi
call fcn.004b9f90
mov ecx, esi
call fcn.004b9f60
mov dword [esp + 0x38], eax
test byte [esp + 0x28], 1
je 0x403939
mov eax, dword [esp + 0x30]
jmp 0x40393d
push str.usage:_adb_bugreport___PATH______stream__
call fcn.00449cd0
lea eax, [esp + 0x29]
test byte [esp + 8], 1
je 0x40394a
mov ecx, dword [esp + 0x10]
jmp 0x40394e
lea ecx, [esp + 9]
push ecx
push eax
push ebx
push str.bugreportz__v_results:_status_d__stdout_s__stderr_s
lea esi, [esp + 0x70]
push esi
call fcn.004ba8a0
add esp, 0x14
push esi
push dword [esp + 0x3c]
call fcn.00402f30
add esp, 8
test byte [esp + 0x60], 1
je 0x403983
push dword [esp + 0x68]
call fcn.0051c570
add esp, 4
lea ecx, [esp + 0x3c]
call fcn.004ba060
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], edi
jmp 0x403346
lea ecx, [esp + 0x60]
call fcn.0051f6b0
nop word cs:[eax + eax]