Function at 0x4099b0
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 0x4099d0
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 0x40a268
mov dword [esp + 0x5c], 0
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.00471210
add esp, 8
cmp dword [esp + 0x5c], 0
je 0x40a27b
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x48]
push edi
call fcn.0041d7e0
movzx eax, byte [esp + 0x48]
test al, 1
je 0x409a39
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x409a8e
jmp 0x409a3f
shr eax, 1
test eax, eax
jne 0x409a8e
lea ecx, [esp + 0x98]
call fcn.0040aa90
test byte [esp + 0x48], 1
je 0x409a74
mov eax, dword [esp + 0x50]
mov byte [eax], 0
mov dword [esp + 0x4c], 0
test byte [esp + 0x48], 1
je 0x409a74
push dword [esp + 0x50]
call fcn.0041a380
add esp, 4
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x50], eax
movsd xmm0, qword [esp + 0x98]
movsd qword [esp + 0x48], xmm0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
mov esi, dword [esp + 0x5c]
push esi
call fcn.004747d0
add esp, 4
mov dword [esp + 0x58], esi
mov edi, dword [esi + 0x30]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.00478b10
add esp, 8
movzx eax, byte [esp + 0x60]
test al, 1
je 0x409af4
mov eax, dword [esp + 0x64]
cmp eax, 5
je 0x409afb
jmp 0x409b13
shr eax, 1
cmp eax, 5
jne 0x409b13
lea ecx, [esp + 0x60]
push 5
push str.super
push 0xffffffffffffffff
push 0
call fcn.0041f610
test eax, eax
je 0x409b89
mov esi, dword [0x586538]
push 0x20
call fcn.0041a1e0
add esp, 4
mov dword [esp + 0xa0], eax
mov dword [esp + 0x98], 0x21
mov dword [esp + 0x9c], 0x15
movsd xmm0, qword [0x55d7d4]
movsd qword [eax + 0xd], xmm0
movups xmm0, xmmword [str.oem_allow_flash_super]
movups xmmword [eax], xmm0
mov byte [eax + 0x15], 0
lea eax, [esp + 0x98]
mov ecx, esi
push 0
push 0
push 0
push eax
call fcn.00463d40
test byte [esp + 0x98], 1
je 0x409b89
push dword [esp + 0xa0]
call fcn.0041a380
add esp, 4
lea ebx, [esp + 0x98]
push 0x401
push 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
mov ecx, ebx
call fcn.00423380
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx + 0x15c]
sub eax, dword [ecx + 0x158]
cmp eax, 0x41
jb 0x409c0a
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40a25f
mov ecx, eax
cmp eax, 0xb
jae 0x409d4c
mov eax, ecx
add al, cl
mov byte [esp + 0x30], al
lea esi, [esp + 0x31]
test ecx, ecx
jne 0x409d79
jmp 0x409d88
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov word [esp + 0x20], 0x2f02
lea ecx, [esp + 0x20]
push ebx
push 0
call fcn.0041e850
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movzx eax, byte [esp + 0x60]
test al, 1
je 0x409c6c
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x64]
jmp 0x409c72
shr eax, 1
lea edx, [esp + 0x61]
mov ecx, esp
push eax
push edx
call fcn.0041e090
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x10], xmm0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea esi, [esp + 0x10]
mov ecx, esi
push 0x55d7dd
call fcn.0041e2e0
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0
test byte [esp + 0x10], 1
jne 0x409d25
test byte [esp], 1
jne 0x409d37
test byte [esp + 0x20], 1
je 0x409cf5
push dword [esp + 0x28]
call fcn.0041a380
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
mov edi, dword [esp + 0x64]
push edi
push eax
call fcn.00473540
jmp 0x409dbb
push dword [esp + 0x18]
call fcn.0041a380
add esp, 4
test byte [esp], 1
je 0x409ce2
push dword [esp + 8]
call fcn.0041a380
add esp, 4
test byte [esp + 0x20], 1
jne 0x409ce9
jmp 0x409cf5
mov ebx, ecx
add ebx, 0x10
and ebx, 0xfffffff0
push ebx
mov esi, ecx
call fcn.0041a1e0
mov ecx, esi
add esp, 4
mov esi, eax
mov dword [esp + 0x38], eax
or ebx, 1
mov dword [esp + 0x30], ebx
lea ebx, [esp + 0x98]
mov dword [esp + 0x34], ecx
push ecx
push ebx
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 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 edi
mov edi, dword [esp + 0x64]
push edi
push eax
call fcn.004735d0
add esp, 0x14
mov ebx, eax
mov ecx, esi
push dword [esp + 0x14]
call fcn.0040eff0
test byte [esp + 0x30], 1
je 0x409dde
push dword [esp + 0x38]
call fcn.0041a380
add esp, 4
test bl, bl
je 0x40a1ea
mov esi, dword [edi + 0x158]
mov ecx, dword [edi + 0x15c]
mov al, 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x90], ecx
cmp esi, ecx
je 0x40a200
lea ebx, [esp + 0x10]
jmp 0x409e20
add esi, 0x40
cmp esi, dword [esp + 0x90]
je 0x40a200
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push esi
push ebx
call fcn.00478b10
add esp, 8
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x94], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov eax, dword [edi + 0x15c]
sub eax, dword [edi + 0x158]
cmp eax, 0x41
jb 0x409f30
mov edi, esi
push ebx
push 0x55d812
lea esi, [esp + 0x38]
push esi
call fcn.00421fc0
add esp, 0xc
mov ecx, esi
push 0x55d7dd
call fcn.0041e2e0
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 esi, dword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
test byte [esp], 1
je 0x409ee8
mov eax, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 4], 0
test byte [esp], 1
je 0x409ee8
push dword [esp + 8]
call fcn.0041a380
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], esi
test byte [esp + 0x30], 1
je 0x409f13
push dword [esp + 0x38]
call fcn.0041a380
add esp, 4
lea eax, [esp + 0x98]
mov esi, edi
jmp 0x40a01b
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
movzx ebx, byte [esp + 0x10]
test bl, 1
je 0x409f60
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x409f66
shr ebx, 1
lea ecx, [esp + 0x11]
lea eax, [ebx + 4]
cmp eax, 0xfffffff0
jae 0x40a25f
mov dword [esp + 0x8c], esi
cmp eax, 0xb
jae 0x409f90
mov eax, ebx
add al, bl
mov byte [esp + 0x30], al
lea esi, [esp + 0x31]
test ebx, ebx
jne 0x409fb4
jmp 0x409fbf
lea edi, [ebx + 0x14]
and edi, 0xfffffff0
push edi
mov esi, ecx
call fcn.0041a1e0
mov ecx, esi
add esp, 4
mov esi, eax
mov dword [esp + 0x38], eax
or edi, 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
push ebx
push ecx
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
lea ecx, [esp + 0x30]
push 4
push 0x55d7dd
call fcn.0041e090
test byte [esp], 1
je 0x409ffa
mov eax, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 4], 0
test byte [esp], 1
je 0x409ffa
push dword [esp + 8]
call fcn.0041a380
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
lea eax, [esp + 0x98]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov word [esp + 0x80], 0x2f02
lea ecx, [esp + 0x80]
push eax
push 0
call fcn.0041e850
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movzx eax, byte [esp]
test al, 1
je 0x40a0b0
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x40a0b6
shr eax, 1
lea edx, [esp + 1]
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.0041e090
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x20], xmm0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0
test byte [esp + 0x30], 1
je 0x40a0f9
push dword [esp + 0x38]
call fcn.0041a380
add esp, 4
test byte [esp + 0x80], 1
je 0x40a112
push dword [esp + 0x88]
call fcn.0041a380
add esp, 4
mov ebx, dword [esp + 0x94]
and ebx, 1
mov dword [esp + 0x30], 0x55d824
lea eax, [esp + 0x20]
mov dword [esp + 0x34], eax
lea edi, [esp + 0x30]
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x48]
push ebx
push edi
call fcn.004041d0
add esp, 8
mov ecx, dword [esp + 0x40]
cmp edi, ecx
je 0x40a160
mov eax, 5
test ecx, ecx
jne 0x40a165
jmp 0x40a16a
mov eax, 4
mov edx, dword [ecx]
call dword [edx + eax*4]
test byte [esp + 0x20], 1
lea eax, [esp + 0x21]
mov edi, dword [esp + 0x58]
lea ebx, [esp + 0x10]
je 0x40a181
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 0x40a1b0
test byte [esp], 1
jne 0x40a1c2
test byte [esp + 0x10], 1
je 0x409e10
jmp 0x40a1d9
push dword [esp + 0x28]
call fcn.0041a380
add esp, 4
test byte [esp], 1
je 0x40a197
push dword [esp + 8]
call fcn.0041a380
add esp, 4
test byte [esp + 0x10], 1
je 0x409e10
push dword [esp + 0x18]
call fcn.0041a380
add esp, 4
jmp 0x409e10
lea ecx, [esp + 0x70]
push str.Could_not_generate_a_flashable_super_image_file
call fcn.0041e510
mov dword [esp + 0x6c], 0
lea ecx, [esp + 0x98]
call fcn.00423670
test byte [esp + 0x60], 1
je 0x40a21f
push dword [esp + 0x68]
call fcn.0041a380
add esp, 4
cmp byte [esp + 0x6c], 0
je 0x40a28e
test byte [esp + 0x70], 1
je 0x40a239
push dword [esp + 0x78]
call fcn.0041a380
add esp, 4
test byte [esp + 0x48], 1
je 0x40a24c
push dword [esp + 0x50]
call fcn.0041a380
add esp, 4
lea ecx, [esp + 0x5c]
push 0
call fcn.0040f190
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x30]
call fcn.0041d590
test byte [esi], 1
je 0x40a270
mov ebx, dword [esi + 8]
push ebx
push str.Could_not_read_image:__s
call fcn.00424010
test byte [esi], 1
je 0x40a283
mov ebx, dword [esi + 8]
push ebx
push str.Could_not_parse_image:__s
call fcn.00424010
lea eax, [esp + 0x70]
push eax
call fcn.00424070
nop dword [eax + eax]