Function at 0x100edc90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x34
mov edi, eax
lea eax, [esp + 0x68]
push esi
push eax
mov dword [esp + 0x6c], esi
call fcn.10173270
add esp, 0xc
cmp edi, esi
je 0x100edd2d
cmp byte [edi], 0
je 0x100edd2d
cmp dword [esp + 0xa0], esi
je 0x100edd2d
cmp dword [esp + 0xa4], esi
je 0x100edd2d
push 1
lea ecx, [esp + 0x4c]
push 0x1022acf8
push ecx
mov cl, 1
lea eax, [esp + 0x48]
mov edx, edi
call fcn.100d7760
mov eax, dword [esp + 0x3c]
cmp eax, esi
jne 0x100edd3d
mov dword [esp + 0x14], 0x1e02
push str.NULL__fp_
lea edi, [esp + 0x14]
mov dword [esp + 0x14], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov byte [esp + 0x1c], 0xff
mov dword [esp + 0x20], str._ERROR:
mov dword [esp + 0x24], str.LoadFile
call fcn.10017c90
add esp, 4
lea esi, [esp + 0x48]
call fcn.10095400
mov eax, 0x1390
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
lea edx, [esp + 0x60]
push edx
push eax
call fcn.1017b458
add esp, 4
push eax
call fcn.1016f9d6
add esp, 8
test eax, eax
je 0x100edd67
mov dword [esp + 0x14], 0x1e07
push str.fstat_fail_
jmp 0x100edcfb
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
cmp edx, esi
ja 0x100edd93
jb 0x100edd81
cmp eax, esi
ja 0x100edd93
mov dword [esp + 0x14], 0x1e0c
push str.file_len_error_
jmp 0x100edcfb
mov ecx, eax
and ecx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
jne 0x100edda6
cmp esi, esi
je 0x100edde2
push edx
push eax
push edi
mov ebp, eax
mov eax, dword [0x103b321c]
push str.LoadFile___s__:_padding_file_len__lu__to_EVEN_number.
mov ebx, edx
push eax
add ebp, 1
adc ebx, esi
push str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov edx, str._WARNING:
mov cl, 0xd2
mov eax, 0x1e12
lea esi, [esp + 0x40]
call fcn.10111280
push eax
call fcn.10111350
add esp, 0x18
jmp 0x100edde6
mov ebp, eax
mov ebx, edx
mov eax, dword [esp + 0xac]
test eax, eax
je 0x100ede48
cmp dword [eax], 0x2694
jne 0x100ede48
push str.user_stop_load_scatter
lea edi, [esp + 0x14]
mov dword [esp + 0x14], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x18], 0x1e1a
mov byte [esp + 0x1c], 0
mov dword [esp + 0x20], str._DEBUG:
mov dword [esp + 0x24], str.LoadFile
call fcn.10017c90
add esp, 4
lea esi, [esp + 0x48]
call fcn.10095400
mov eax, 0x3e8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
push ebp
call fcn.1016bba0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100edf79
lea eax, [esp + 0x10]
call fcn.1012cd20
mov ecx, dword [esp + 0x10]
push ecx
mov esi, str.LoadFile
push str.The_total_physical_memory_size__lu_KB.
lea edi, [esp + 0x30]
mov dword [esp + 0x30], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x34], 0x1e20
mov byte [esp + 0x38], 0
mov dword [esp + 0x3c], str._DEBUG:
mov dword [esp + 0x40], esi
call fcn.10017c90
mov edx, dword [esp + 0x1c]
push edx
push str.The_available_physical_memory_size__lu_KB.
lea edi, [esp + 0x38]
mov dword [esp + 0x38], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x3c], 0x1e21
mov byte [esp + 0x40], 0
mov dword [esp + 0x44], str._DEBUG:
mov dword [esp + 0x48], esi
call fcn.10017c90
mov eax, dword [esp + 0x28]
push eax
push str.The_total_virtual_memory_size__lu_KB.
lea edi, [esp + 0x40]
mov dword [esp + 0x40], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x44], 0x1e22
mov byte [esp + 0x48], 0
mov dword [esp + 0x4c], str._DEBUG:
mov dword [esp + 0x50], esi
call fcn.10017c90
mov ecx, dword [esp + 0x34]
push ecx
push str.The_available_virtual_memory_size__lu_KB.
lea edi, [esp + 0x48]
mov dword [esp + 0x48], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x4c], 0x1e23
mov byte [esp + 0x50], 0
mov dword [esp + 0x54], str._DEBUG:
mov dword [esp + 0x58], esi
call fcn.10017c90
shrd ebp, ebx, 0xa
shr ebx, 0xa
push ebx
push ebp
push str.malloc_memory__lu_KB_failed_
lea edi, [esp + 0x54]
mov dword [esp + 0x54], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x58], 0x1e24
mov byte [esp + 0x5c], 0xff
mov dword [esp + 0x60], str._ERROR:
mov dword [esp + 0x64], esi
call fcn.10017c90
add esp, 0x2c
jmp 0x100edd24
push ebp
push 0xff
push esi
call fcn.10173270
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
add esp, 0xc
push edx
push edi
push 1
push esi
call fcn.10170626
xor ecx, ecx
add esp, 0x10
cmp dword [esp + 0x44], ecx
jb 0x100edfb6
ja 0x100edfab
cmp edi, eax
jbe 0x100edfb6
push esi
call fcn.1016dfc5
jmp 0x100edd21
cmp dword [esp + 0x10], 0
jne 0x100edfc4
cmp dword [esp + 0x14], 0
je 0x100edfc8
mov byte [edi + esi], 0xff
mov eax, dword [esp + 0xa0]
mov dword [eax], esi
mov eax, dword [esp + 0xa4]
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x100edff1
mov ecx, dword [esp + 0x88]
mov dword [eax], ecx
lea esi, [esp + 0x48]
call fcn.10095400
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x8c
ret