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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x4a0
mov edi, edx
mov esi, ecx
lea ebx, [ecx + 1]
test byte [ecx], 1
mov eax, ebx
je 0x40ebe0
mov eax, dword [esi + 8]
push 4
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__access
add esp, 8
test eax, eax
jne 0x40f5cb
mov dword [esp + 0x68], 0
lea eax, [esp + 0x68]
push esi
push eax
call fcn.00485d40
add esp, 8
cmp dword [esp + 0x68], 0
je 0x40f5de
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
lea ecx, [esp + 0x58]
push edi
call fcn.00423570
movzx eax, byte [esp + 0x58]
test al, 1
je 0x40ec45
mov eax, dword [esp + 0x5c]
jmp 0x40ec47
shr eax, 1
mov esi, dword [ebp + 8]
test eax, eax
jne 0x40eca1
lea eax, [esp + 0x98]
push eax
call fcn.004030d0
add esp, 4
test byte [esp + 0x58], 1
je 0x40ec87
mov eax, dword [esp + 0x60]
mov byte [eax], 0
mov dword [esp + 0x5c], 0
test byte [esp + 0x58], 1
je 0x40ec87
push dword [esp + 0x60]
call fcn.004203b0
add esp, 4
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x60], eax
movsd xmm0, qword [esp + 0x98]
movsd qword [esp + 0x58], xmm0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], 0
mov edi, dword [esp + 0x68]
mov dword [esp + 0x94], esi
push edi
call fcn.0048fd40
add esp, 4
mov dword [esp + 0x54], edi
mov edi, dword [edi + 0x30]
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.00493e70
add esp, 8
movzx eax, byte [esp + 0x70]
test al, 1
je 0x40ed12
mov eax, dword [esp + 0x74]
jmp 0x40ed14
shr eax, 1
lea esi, [esp + 0x98]
cmp eax, 5
jne 0x40ed3c
lea ecx, [esp + 0x70]
push 5
push 0x5783d3
push 0xffffffffffffffff
push 0
call fcn.00425430
test eax, eax
je 0x40edd3
mov esi, dword [0x5aa310]
mov dword [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa0], 0
push 0x20
call fcn.00420210
add esp, 4
mov dword [esp + 0xa0], eax
mov dword [esp + 0x98], 0x21
mov dword [esp + 0x9c], 0x15
movsd xmm0, qword [0x57b649]
movsd qword [eax + 0xd], xmm0
movups xmm0, xmmword [str.oem_allow_flash_super]
movups xmmword [eax], xmm0
mov byte [eax + 0x15], 0
mov ecx, esi
lea esi, [esp + 0x98]
push 0
push 0
push 0
push esi
call fcn.00476c20
test byte [esp + 0x98], 1
je 0x40edd3
push dword [esp + 0xa0]
call fcn.004203b0
add esp, 4
push 0x401
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov ecx, esi
call fcn.00429430
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 0x15c]
sub eax, dword [ecx + 0x158]
cmp eax, 0x41
jb 0x40ee49
mov dword [esp + 0x64], edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40f5c2
mov ebx, eax
cmp eax, 0xb
jae 0x40ee97
mov eax, ebx
add al, bl
mov byte [esp + 0x30], al
lea esi, [esp + 0x31]
test ebx, ebx
jne 0x40eeb9
jmp 0x40eecb
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40f5fe
mov ecx, eax
cmp eax, 0xb
jae 0x40ef05
mov eax, ecx
add al, cl
mov byte [esp + 0x20], al
lea esi, [esp + 0x21]
test ecx, ecx
jne 0x40ef2b
jmp 0x40ef41
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.00420210
add esp, 4
mov esi, eax
mov dword [esp + 0x38], eax
add edi, 2
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
push ebx
lea eax, [esp + 0x9c]
push eax
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 + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
lea esi, [esp + 0x10]
lea eax, [esp + 0x30]
push 1
push esi
push dword [esp + 0x6c]
push dword [esp + 0x60]
push eax
call fcn.004881e0
jmp 0x40f05e
mov ebx, ecx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
mov esi, ecx
call fcn.00420210
mov ecx, esi
add esp, 4
mov esi, eax
mov dword [esp + 0x28], eax
add ebx, 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ecx
push ecx
lea eax, [esp + 0x9c]
push eax
push esi
mov ebx, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, ebx
add esp, 0xc
mov byte [esi + ecx], 0
lea ecx, [esp + 0x20]
push 0x579640
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
lea ecx, [esp + 0x48]
lea eax, [esp + 0x70]
push eax
call fcn.00423570
movzx eax, byte [esp + 0x48]
test al, 1
je 0x40ef98
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
jmp 0x40ef9e
shr eax, 1
lea edx, [esp + 0x49]
mov ecx, esp
push eax
push edx
call fcn.00423e00
movsd xmm0, qword [eax]
movsd qword [esp + 0x10], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea esi, [esp + 0x10]
mov ecx, esi
push 0x5789eb
call fcn.00424050
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
test byte [esp + 0x10], 1
jne 0x40f505
test byte [esp + 0x48], 1
jne 0x40f51c
test byte [esp], 1
jne 0x40f532
test byte [esp + 0x20], 1
je 0x40f034
push dword [esp + 0x28]
call fcn.004203b0
add esp, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push 1
push esi
push edi
push dword [esp + 0x60]
push eax
call fcn.00488150
add esp, 0x14
mov ebx, eax
mov ecx, esi
push dword [esp + 0x14]
call fcn.00414270
test byte [esp + 0x30], 1
je 0x40f081
push dword [esp + 0x38]
call fcn.004203b0
add esp, 4
test bl, bl
lea esi, [esp + 0x98]
je 0x40f4ea
mov eax, dword [esp + 0x54]
mov edi, dword [eax + 0x158]
mov eax, dword [eax + 0x15c]
mov dword [esp + 0x8c], eax
cmp edi, eax
je 0x40f54e
mov al, 1
mov dword [esp + 0x6c], eax
lea ebx, [esp + 0x10]
jmp 0x40f0d0
add edi, 0x40
cmp edi, dword [esp + 0x8c]
je 0x40f554
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push edi
push ebx
call fcn.00493e70
add esp, 8
mov edx, dword [edi + 0x3c]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 0x54]
mov eax, dword [ecx + 0x15c]
sub eax, dword [ecx + 0x158]
cmp eax, 0x41
mov dword [esp + 0x64], edi
mov dword [esp + 0x90], edx
jb 0x40f1e0
push ebx
push 0x57b682
lea edi, [esp + 0x38]
push edi
call fcn.00427900
add esp, 0xc
mov ecx, edi
push 0x5789eb
call fcn.00424050
movzx ebx, byte [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x23], ecx
mov ecx, dword [eax + 1]
mov dword [esp + 0x20], ecx
mov edi, dword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
test byte [esp], 1
je 0x40f19e
mov eax, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 4], 0
test byte [esp], 1
je 0x40f19e
push dword [esp + 8]
call fcn.004203b0
add esp, 4
mov byte [esp], bl
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x23]
lea edx, [esp + 1]
mov dword [edx + 3], ecx
mov dword [edx], eax
mov dword [esp + 8], edi
test byte [esp + 0x30], 1
je 0x40f2c4
push dword [esp + 0x38]
call fcn.004203b0
add esp, 4
jmp 0x40f2c4
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
movzx ebx, byte [esp + 0x10]
test bl, 1
je 0x40f210
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x40f216
shr ebx, 1
lea ecx, [esp + 0x11]
lea esi, [ebx + 4]
cmp esi, 0xfffffff0
jae 0x40f5c2
cmp esi, 0xb
jae 0x40f240
mov eax, ebx
add al, bl
mov byte [esp + 0x30], al
lea edi, [esp + 0x31]
test ebx, ebx
lea esi, [esp + 0x98]
jne 0x40f26b
jmp 0x40f276
or esi, 0xf
lea eax, [esi + 1]
push eax
mov edi, ecx
call fcn.00420210
mov ecx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0x38], eax
add esi, 2
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
lea esi, [esp + 0x98]
push ebx
push ecx
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
lea ecx, [esp + 0x30]
push 4
push 0x5789eb
call fcn.00423e00
test byte [esp], 1
je 0x40f2b1
mov eax, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 4], 0
test byte [esp], 1
je 0x40f2b1
push dword [esp + 8]
call fcn.004203b0
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40f5b9
mov ebx, eax
cmp eax, 0xb
jae 0x40f320
mov eax, ebx
add al, bl
mov byte [esp + 0x48], al
lea edi, [esp + 0x49]
test ebx, ebx
jne 0x40f349
jmp 0x40f354
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
call fcn.00420210
add esp, 4
mov edi, eax
mov dword [esp + 0x50], eax
add esi, 2
mov dword [esp + 0x48], esi
lea esi, [esp + 0x98]
mov dword [esp + 0x4c], ebx
push ebx
push esi
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
lea ecx, [esp + 0x48]
push 0x579640
call fcn.00424050
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
movzx eax, byte [esp]
test al, 1
je 0x40f3a0
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x40f3a6
shr eax, 1
lea edx, [esp + 1]
mov edi, dword [esp + 0x64]
lea ebx, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.00423e00
movsd xmm0, qword [eax]
movsd qword [esp + 0x20], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
test byte [esp + 0x30], 1
je 0x40f3f1
push dword [esp + 0x38]
call fcn.004203b0
add esp, 4
test byte [esp + 0x48], 1
je 0x40f404
push dword [esp + 0x50]
call fcn.004203b0
add esp, 4
mov ecx, dword [esp + 0x90]
and ecx, 1
mov dword [esp + 0x30], 0x57b694
lea eax, [esp + 0x20]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x94]
mov dword [esp + 0x38], eax
lea esi, [esp + 0x30]
mov dword [esp + 0x40], esi
push ecx
push esi
lea eax, [esp + 0x60]
push eax
push ebx
call fcn.00403350
add esp, 0x10
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x40f460
test ecx, ecx
lea esi, [esp + 0x98]
je 0x40f472
mov eax, dword [ecx]
add eax, 0x14
jmp 0x40f470
mov eax, dword [esp + 0x30]
add eax, 0x10
mov ecx, esi
lea esi, [esp + 0x98]
call dword [eax]
test byte [esp + 0x20], 1
lea eax, [esp + 0x21]
je 0x40f481
mov eax, dword [esp + 0x28]
push eax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__unlink
add esp, 4
test byte [esp + 0x20], 1
jne 0x40f4b0
test byte [esp], 1
jne 0x40f4c2
test byte [esp + 0x10], 1
je 0x40f0c0
jmp 0x40f4d9
push dword [esp + 0x28]
call fcn.004203b0
add esp, 4
test byte [esp], 1
je 0x40f497
push dword [esp + 8]
call fcn.004203b0
add esp, 4
test byte [esp + 0x10], 1
je 0x40f0c0
push dword [esp + 0x18]
call fcn.004203b0
add esp, 4
jmp 0x40f0c0
lea ecx, [esp + 0x80]
push str.Could_not_generate_a_flashable_super_image_file
call fcn.00424280
mov dword [esp + 0x6c], 0
jmp 0x40f554
push dword [esp + 0x18]
call fcn.004203b0
add esp, 4
test byte [esp + 0x48], 1
je 0x40f017
push dword [esp + 0x50]
call fcn.004203b0
add esp, 4
test byte [esp], 1
je 0x40f021
push dword [esp + 8]
call fcn.004203b0
add esp, 4
test byte [esp + 0x20], 1
jne 0x40f028
jmp 0x40f034
mov al, 1
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x98]
call fcn.00429710
test byte [esp + 0x70], 1
je 0x40f573
push dword [esp + 0x78]
call fcn.004203b0
add esp, 4
cmp byte [esp + 0x6c], 0
je 0x40f5f1
test byte [esp + 0x80], 1
je 0x40f593
push dword [esp + 0x88]
call fcn.004203b0
add esp, 4
test byte [esp + 0x58], 1
je 0x40f5a6
push dword [esp + 0x60]
call fcn.004203b0
add esp, 4
lea ecx, [esp + 0x68]
push 0
call fcn.00414390
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x48]
call fcn.00423320
lea ecx, [esp + 0x30]
call fcn.00423320
test byte [esi], 1
je 0x40f5d3
mov ebx, dword [esi + 8]
push ebx
push str.Could_not_read_image:__s
call fcn.004286b0
test byte [esi], 1
je 0x40f5e6
mov ebx, dword [esi + 8]
push ebx
push str.Could_not_parse_image:__s
call fcn.004286b0
lea eax, [esp + 0x80]
push eax
call fcn.00428710
lea ecx, [esp + 0x20]
call fcn.00423320
nop word [eax + eax]