Function at 0x403910
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x404387
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push str.Do_flash__s__s
call fcn.00428740
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x80], 0xffffffff
mov esi, dword [edi + 4]
test esi, esi
je 0x4039b0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x404357
mov ecx, eax
cmp eax, 0xb
jae 0x4039e6
mov eax, ecx
add al, cl
mov byte [esp + 0x10], al
lea edi, [esp + 0x11]
test ecx, ecx
jne 0x403a0f
jmp 0x403a1e
lea edx, [esp + 0x60]
mov ecx, ebx
push edi
call fcn.00404650
add esp, 4
test al, al
mov edi, dword [ebp + 8]
jne 0x403d1a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push ebx
push str.cannot_load__s:__s
call fcn.004286b0
mov ebx, ecx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
mov edi, ecx
call fcn.00420210
mov ecx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0x18], eax
add ebx, 2
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
push ecx
push ebx
push edi
mov ebx, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, ebx
add esp, 0xc
mov byte [edi + ecx], 0
mov eax, dword [esi]
lea edx, [esp + 0x10]
lea ecx, [esp + 0x4c]
push edx
push esi
call dword [eax + 0xc]
test byte [esp + 0x10], 1
je 0x403a44
push dword [esp + 0x18]
call fcn.004203b0
add esp, 4
mov edi, dword [esp + 0x4c]
test edi, edi
js 0x404369
mov dword [esp + 0x4c], 0xffffffff
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call esi
mov ebx, dword [eax]
mov dword [esp + 0x58], edi
call esi
mov dword [eax], ebx
lea ecx, [esp + 0x58]
lea edx, [esp + 0x60]
push dword [ebp + 0x14]
call fcn.004043d0
add esp, 4
mov ebx, eax
call esi
mov esi, dword [eax]
mov eax, dword [esp + 0x58]
cmp eax, 0xffffffff
je 0x403a95
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
test bl, bl
je 0x404369
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
push dword [ebp + 0xc]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x404360
mov ebx, eax
cmp eax, 0xb
jae 0x403b0a
mov eax, ebx
add al, bl
mov byte [esp + 0x30], al
lea edi, [esp + 0x31]
test ebx, ebx
jne 0x403b2c
jmp 0x403b39
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
call fcn.00420210
add esp, 4
mov edi, eax
mov dword [esp + 0x38], eax
add esi, 2
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
push ebx
push dword [ebp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
mov eax, dword [ebp + 0x14]
mov edi, dword [eax + 4]
lea ebx, [esp + 0x30]
mov ecx, ebx
push 0
push 0x2e
call fcn.00424f80
lea esi, [esp + 0x40]
mov ecx, esi
push ebx
push eax
push 0
push ebx
call fcn.004237d0
mov ecx, esi
push str..sig
call fcn.00424050
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov eax, dword [edi]
mov esi, esp
mov ecx, edi
lea edx, [esp + 0x10]
push edx
push esi
call dword [eax + 8]
mov ebx, eax
test byte [esp], 1
je 0x403bb5
push dword [esp + 8]
call fcn.004203b0
add esp, 4
test byte [esp + 0x40], 1
mov edi, dword [ebp + 8]
je 0x403bcb
push dword [esp + 0x48]
call fcn.004203b0
add esp, 4
test bl, bl
je 0x403cc8
mov ecx, dword [0x5aa310]
mov dword [esp + 8], 0
mov byte [esp], 0x12
mov dword [esp + 1], 0x6e676973
mov dword [esp + 5], 0x72757461
mov byte [esp + 9], 0x65
push 0
push 0
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00477260
test byte [esp], 1
je 0x403c1b
push dword [esp + 8]
call fcn.004203b0
add esp, 4
mov edi, dword [0x5aa310]
mov dword [esp + 8], 0
mov byte [esp], 0x12
mov dword [esp + 1], 0x6e676973
mov dword [esp + 5], 0x72757461
mov byte [esp + 9], 0x65
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
push 0x20
call fcn.00420210
add esp, 4
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], 0x21
mov dword [esp + 0x44], 0x14
movups xmm0, xmmword [str.installing_signature]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0x65727574
mov byte [eax + 0x14], 0
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
push 0
lea edx, [esp + 0x4c]
push edx
push esi
call dword [eax + 0x20]
test byte [esp + 0x40], 1
je 0x403cb3
push dword [esp + 0x48]
call fcn.004203b0
add esp, 4
test byte [esp], 1
mov edi, dword [ebp + 8]
je 0x403cc8
push dword [esp + 8]
call fcn.004203b0
add esp, 4
test byte [esp + 0x30], 1
je 0x403cdb
push dword [esp + 0x38]
call fcn.004203b0
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403cf0
mov dword [esp + 0x14], eax
push eax
call fcn.004203b0
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
je 0x403d0a
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x404357
mov ebx, eax
cmp eax, 0xb
jae 0x403d5d
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea esi, [esp + 0x11]
test ebx, ebx
jne 0x403d82
jmp 0x403d8d
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.00420210
add esp, 4
mov esi, eax
mov dword [esp + 0x18], eax
add edi, 2
mov dword [esp + 0x10], edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], ebx
push ebx
push edi
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
lea eax, [esp + 0x10]
push eax
call fcn.00402f20
add esp, 4
mov ebx, eax
test byte [esp + 0x10], 1
je 0x403db3
push dword [esp + 0x18]
call fcn.004203b0
add esp, 4
test bl, bl
mov ebx, dword [ebp + 0x14]
je 0x403e9a
mov esi, dword [0x5aa310]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x404357
mov ecx, eax
cmp eax, 0xb
jae 0x403e07
mov eax, ecx
add al, cl
mov byte [esp + 0x10], al
lea edi, [esp + 0x11]
test ecx, ecx
jne 0x403e2d
jmp 0x403e45
mov ebx, ecx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
mov edi, ecx
call fcn.00420210
mov ecx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0x18], eax
add ebx, 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
push ecx
push dword [ebp + 8]
push edi
mov ebx, esi
mov esi, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, esi
mov esi, ebx
mov ebx, dword [ebp + 0x14]
add esp, 0xc
mov byte [edi + ecx], 0
lea edi, [esp + 0x30]
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push edi
call fcn.004219a0
add esp, 0xc
mov eax, dword [esi]
mov ecx, esi
push edi
lea edx, [esp + 0x14]
push edx
call dword [eax + 0x24]
test byte [esp + 0x30], 1
je 0x403e84
push dword [esp + 0x38]
call fcn.004203b0
add esp, 4
test byte [esp + 0x10], 1
mov edi, dword [ebp + 8]
je 0x403e9a
push dword [esp + 0x18]
call fcn.004203b0
add esp, 4
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov esi, dword [ebx + 0x3c]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0xc0], str.vendor_boot:
mov dword [esp + 0xc4], 0xc
sub esp, 0x10
movsd xmm0, qword [esp + 0xd0]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x5c]
movsd qword [esp], xmm0
call fcn.0042a580
add esp, 0x10
test al, al
mov dword [esp + 0x3c], ebx
jne 0x403fb2
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xb0], str.vendor_boot_a:
mov dword [esp + 0xb4], 0xe
sub esp, 0x10
movsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xc8]
movsd qword [esp], xmm0
call fcn.0042a580
add esp, 0x10
test al, al
jne 0x403fb2
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], ebx
mov dword [esp + 0xa0], str.vendor_boot_b:
mov dword [esp + 0xa4], 0xe
sub esp, 0x10
movsd xmm0, qword [esp + 0xb0]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0xb8]
movsd qword [esp], xmm0
call fcn.0042a580
add esp, 0x10
test al, al
je 0x404239
mov dword [esp + 0x54], esi
cmp dword [esp + 0x60], 0
jne 0x404398
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
xor edx, edx
mov esi, eax
neg esi
sbb edx, ecx
jge 0x4043a2
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x403ffe
push eax
push 0x3a
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memchr
add esp, 0xc
mov ecx, eax
sub ecx, edi
xor ebx, ebx
cmp eax, 1
sbb ebx, ebx
or ebx, ecx
mov eax, dword [esp + 0x3c]
jmp 0x404003
mov ebx, 0xffffffff
cmp eax, ebx
cmovb ebx, eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
cmp ebx, 0xfffffff0
jae 0x404391
cmp ebx, 0xb
jae 0x40403e
mov eax, ebx
add al, bl
mov byte [esp], al
lea esi, [esp + 1]
test ebx, ebx
jne 0x404062
jmp 0x40406d
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.00420210
add esp, 4
mov esi, eax
mov dword [esp + 8], eax
add edi, 2
mov dword [esp], edi
mov edi, dword [ebp + 8]
mov dword [esp + 4], ebx
push ebx
push edi
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x40409e
push ecx
push 0x3a
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memchr
add esp, 0xc
mov ecx, edi
mov edi, eax
sub edi, ecx
mov ecx, dword [esp + 0x3c]
inc edi
test eax, eax
cmove edi, eax
cmp ecx, edi
jae 0x4040a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
xor edi, edi
mov ebx, ecx
sub ebx, edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
cmp ebx, 0xfffffff0
jae 0x404360
cmp ebx, 0xb
jae 0x4040dc
mov eax, ebx
add al, bl
mov byte [esp + 0x30], al
lea esi, [esp + 0x31]
cmp ecx, edi
jne 0x4040fe
jmp 0x40410e
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
call fcn.00420210
add esp, 4
mov dword [esp + 0x38], eax
add esi, 2
mov dword [esp + 0x30], esi
mov esi, eax
mov dword [esp + 0x34], ebx
mov eax, dword [ebp + 8]
add eax, edi
push ebx
push eax
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
call fcn.0040f710
mov esi, eax
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call ebx
mov edi, dword [eax]
call ebx
mov dword [eax], edi
mov dword [esp + 0xc8], esi
mov eax, esp
push dword [esp + 0x54]
push esi
push eax
call fcn.0040f7b0
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x9c], esi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x98], edi
mov ebx, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push ebx
mov ebx, edx
lea edx, [esp + 0x3c]
push edx
push ebx
mov dword [esp + 0x50], eax
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0047c810
add esp, 0x20
cmp dword [esp + 0x20], 0
jne 0x4043ae
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0x54], eax
cmp edi, 0xffffffff
je 0x4041ba
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov dword [esp + 0x80], esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [esp + 0x54]
mov dword [eax], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ebx
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x40420f
movsd xmm0, qword [0x5798e0]
movsd qword [esp + 0x40], xmm0
lea ecx, [esp + 0x5f]
lea edx, [esp + 0x10]
push edx
push ecx
call dword [esp + eax*4 + 0x48]
add esp, 8
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 + 0x30], 1
mov ebx, dword [ebp + 0x14]
je 0x4042ad
push dword [esp + 0x38]
call fcn.004203b0
add esp, 4
jmp 0x4042ad
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
cmp ebx, 0xfffffff0
jae 0x404391
cmp ebx, 0xb
jae 0x40426f
mov eax, ebx
add al, bl
mov byte [esp], al
lea esi, [esp + 1]
test ebx, ebx
jne 0x404297
jmp 0x4042a6
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.00420210
mov ebx, dword [esp + 0x40]
add esp, 4
mov esi, eax
mov dword [esp + 8], eax
add edi, 2
mov dword [esp], edi
mov edi, dword [ebp + 8]
mov dword [esp + 4], ebx
push ebx
push edi
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ebx, dword [esp + 0x48]
add esp, 0xc
mov byte [esi + ebx], 0
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebx + 4]
movzx eax, byte [ebp + 0x10]
lea esi, [esp + 0x60]
mov edx, esp
push eax
push esi
call fcn.00404780
add esp, 8
test byte [esp], 1
je 0x4042d6
push dword [esp + 8]
call fcn.004203b0
add esp, 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
mov eax, dword [esp + 0x80]
cmp eax, 0xffffffff
je 0x4042f3
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__close
add esp, 4
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
mov esi, dword [esp + 0x68]
test esi, esi
je 0x40434f
mov edi, dword [esp + 0x6c]
mov eax, esi
cmp edi, esi
jne 0x404327
jmp 0x404342
add edi, 0xfffffff8
cmp edi, esi
je 0x40433e
mov eax, dword [edi - 8]
mov dword [edi - 8], 0
test eax, eax
je 0x404320
push eax
call dword [edi - 4]
add esp, 4
jmp 0x404320
mov eax, dword [esp + 0x68]
mov dword [esp + 0x6c], esi
push eax
call fcn.004203b0
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.00423320
lea ecx, [esp + 0x30]
call fcn.00423320
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_strerror
add esp, 4
push eax
push dword [ebp + 0xc]
push str.could_not_load__s:__s
call fcn.004286b0
push str.do_flash_was_called_without_a_valid_flashing_plan
call fcn.004286b0
mov ecx, esp
call fcn.00423320
push str.Flashing_sparse_vendor_ramdisk_image_is_not_supported.
call fcn.004286b0
push ecx
push eax
push str.repack_ramdisk___sees_negative_size:__lld
call fcn.004286b0
lea ecx, [esp + 0x10]
call fcn.00413930
test byte [eax], 1
je 0x4043c1
mov eax, dword [eax + 8]
jmp 0x4043c2
inc eax
push eax
push 0x578ec4
call fcn.004286b0
nop dword [eax]