Function at 0x100deb00
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1019fb22
mov eax, dword fs:[0]
push eax
sub esp, 0x870
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x880]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x58], eax
mov eax, esi
mov dword [esp + 0x48], esi
mov ebx, edx
call fcn.100dc7a0
push 0x103
lea ecx, [esp + 0x771]
push 0
push ecx
mov byte [esp + 0x778], 0
call fcn.10173270
add esp, 0xc
test ebx, ebx
je 0x100df6c3
cmp byte [ebx], 0
je 0x100df6c3
push ebx
push str.scatter_filepath__s_
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x20], 0xa66
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.DL_HANDLE::LoadScatter
call fcn.10017c90
mov eax, ebx
add esp, 8
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100debc2
sub eax, edi
push eax
push ebx
lea ecx, [esi + 0x20ac]
call fcn.10004620
mov edx, dword [0x103b3534]
push edx
mov dword [esp + 0x60], 0x103b3534
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov dword [esp + 0x88c], 0
call fcn.100ee190
add esp, 4
test al, al
je 0x100df03b
mov edi, dword [esi + 0x1cb0]
xor eax, eax
cmp edi, eax
je 0x100df03b
cmp dword [esi + 0x1cb8], eax
je 0x100df03b
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x1cb4]
push eax
lea eax, [esp + 0x50]
push eax
push ebx
call edi
mov dword [esp + 0x40], eax
test eax, eax
je 0x100decd3
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
push edi
mov esi, str._ERROR:
push str.CALLBACK_REMOTE_GET_FILE_LEN_0x_08X_:_m_len__lu___nRet__d_.
lea edi, [esp + 0x28]
mov dword [esp + 0x28], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x2c], 0xa75
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], str.DL_HANDLE::LoadScatter
call fcn.10017c90
add esp, 0x14
push ebx
push str.fail_to_get_file_length_from___s_________S_FTHND_CALLBACK_REMOTE_GET_FILE_LEN_FAIL
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x20], 0xa76
mov byte [esp + 0x24], 0xff
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], str.DL_HANDLE::LoadScatter
call fcn.10017c90
mov eax, dword [0x103b3534]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x40]
jmp 0x100df6c8
mov ecx, dword [esp + 0x4c]
mov edi, dword [esi + 0x1cb8]
push ecx
call fcn.1016bba0
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0x888], 1
mov edx, dword [esp + 0x4c]
push edx
push 0
push eax
call fcn.10173270
mov eax, dword [esi + 0x1cbc]
mov ecx, dword [esp + 0x50]
add esp, 0xc
push eax
mov eax, dword [esp + 0x50]
push eax
push ecx
push ebx
call edi
mov dword [esp + 0x40], eax
test eax, eax
je 0x100dedb8
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push edx
push eax
push edi
mov esi, str._ERROR:
push str.CALLBACK_REMOTE_READ_FILE_0x_08X_:_m_len__lu___nRet__d_.
lea edi, [esp + 0x28]
mov dword [esp + 0x28], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x2c], 0xa7e
mov byte [esp + 0x30], 0xff
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], str.DL_HANDLE::LoadScatter
call fcn.10017c90
add esp, 0x14
push ebx
push str.fail_to_read_file_from___s_________S_FTHND_CALLBACK_REMOTE_READ_FILE_FAIL
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x20], 0xa7f
mov byte [esp + 0x24], 0xff
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], str.DL_HANDLE::LoadScatter
call fcn.10017c90
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.1016dfc5
mov edx, dword [0x103b3534]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x40]
jmp 0x100df6c8
mov esi, dword [esi + 0x20a0]
test esi, esi
je 0x100dee24
cmp dword [esi], 0x2694
jne 0x100dee24
push str.user_stop_load_scatter
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x1c], 0xa85
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.DL_HANDLE::LoadScatter
call fcn.10017c90
mov eax, dword [esp + 0x48]
add esp, 4
push eax
call fcn.1016dfc5
mov ecx, dword [0x103b3534]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x3e8
jmp 0x100df6c8
mov eax, dword [0x10289608]
mov esi, 0x10
cmp dword [0x1028961c], esi
jae 0x100dee3b
mov eax, 0x10289608
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x770]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, dword [esp + 0x40]
push ebx
lea ecx, [esp + 0x15c]
mov byte [edx], 0
call fcn.10004550
push 0xffffffffffffffff
lea eax, [esp + 0x15c]
push eax
mov edx, 0x1023b4c4
mov byte [esp + 0x890], 2
call fcn.10018a90
cmp eax, 0xffffffff
je 0x100deec9
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x164]
call fcn.10018ac0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x164]
mov byte [esp + 0x894], 3
call fcn.10004b90
lea ecx, [esp + 0x14]
mov byte [esp + 0x888], 2
call fcn.100045c0
jmp 0x100def00
push ebx
push str.incorrect_scatter_file_name__s
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x20], 0xa97
mov byte [esp + 0x24], 0xff
mov dword [esp + 0x28], str._ERROR:
mov dword [esp + 0x2c], str.DL_HANDLE::LoadScatter
call fcn.10017c90
add esp, 8
lea edx, [esp + 0x158]
push edx
lea eax, [esp + 0x770]
push eax
lea ecx, [esp + 0x17c]
push ecx
call fcn.1008e440
add esp, 0xc
mov byte [esp + 0x888], 4
mov ecx, dword [esp + 0x178]
cmp dword [esp + 0x18c], esi
jae 0x100def3f
lea ecx, [esp + 0x178]
lea edx, [esp + 0x76c]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x100def46
push 1
push 0x1023b4e8
lea edx, [esp + 0x1c]
lea ebx, [esp + 0x774]
push edx
xor cl, cl
lea eax, [esp + 0x60]
mov edx, ebx
call fcn.100d7760
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
push eax
push ecx
push 1
push edx
call fcn.1016ef6a
add esp, 0x10
lea esi, [esp + 0x14]
call fcn.10095400
lea ecx, [esp + 0x174]
call fcn.100045c0
lea ecx, [esp + 0x158]
mov byte [esp + 0x888], 1
call fcn.100045c0
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x20a0]
test eax, eax
je 0x100df022
cmp dword [eax], 0x2694
jne 0x100df022
push str.user_stop_load_scatter
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x1c], 0xaa7
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.DL_HANDLE::LoadScatter
call fcn.10017c90
mov ecx, dword [esp + 0x48]
add esp, 4
push ecx
call fcn.1016dfc5
add esp, 4
mov edx, dword [0x103b3534]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x3e8
jmp 0x100df6c8
mov byte [esp + 0x888], 0
mov eax, dword [esp + 0x44]
push eax
call fcn.1016dfc5
mov esi, dword [esp + 0x4c]
add esp, 4
push ebx
lea ecx, [esp + 0x15c]
call fcn.10004550
lea ecx, [esp + 0x158]
push ecx
lea edx, [esp + 0x3c]
mov byte [esp + 0x88c], 5
mov ebx, dword [esi + 0x20a0]
push edx
call fcn.100fe8f0
add esp, 8
mov byte [esp + 0x888], 7
cmp dword [esp + 0x170], 0x10
jb 0x100df08d
mov eax, dword [esp + 0x15c]
push eax
call fcn.1016d679
add esp, 4
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x170], 0xf
mov dword [esp + 0x16c], 0
mov byte [esp + 0x15c], 0
call eax
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x211c], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x76c], 0
mov edi, eax
je 0x100df0e1
lea ecx, [esp + 0x76c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
je 0x100df10a
lea eax, [esp + 0x38]
mov byte [esp + 0x888], 0
call fcn.101008e0
mov edx, dword [0x103b3534]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
jmp 0x100df6c8
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
movzx eax, ax
mov dword [esp + 0x54], eax
dec eax
cmp ax, 0x7f
ja 0x100df69e
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x60]
push edx
call eax
push eax
mov byte [esp + 0x88c], 8
call fcn.1010d720
mov dword [esi + 0x1f58], eax
lea esi, [esp + 0x60]
mov byte [esp + 0x888], 7
call fcn.100d73c0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x60]
push eax
call edx
push eax
mov byte [esp + 0x88c], 9
call fcn.1010d7a0
mov ebx, dword [esp + 0x48]
lea esi, [esp + 0x60]
mov dword [ebx + 0x20a8], eax
mov byte [esp + 0x888], 7
call fcn.100d73c0
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x60]
push edx
call eax
push eax
mov byte [esp + 0x88c], 0xa
call fcn.1010d6a0
lea esi, [esp + 0x60]
mov dword [ebx + 0x2118], eax
mov byte [esp + 0x888], 7
call fcn.100d73c0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x60]
push eax
call edx
lea esi, [esp + 0x174]
mov byte [esp + 0x888], 0xb
call fcn.100d74e0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebx + 0x2078]
mov byte [esp + 0x894], 0xc
call fcn.10004b90
mov ecx, esi
call fcn.100045c0
lea esi, [esp + 0x60]
mov byte [esp + 0x888], 7
call fcn.100d73c0
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x60]
push edx
call eax
lea esi, [ebx + 0x1f80]
mov edi, eax
mov byte [esp + 0x888], 0xd
call fcn.100df6f0
lea esi, [esp + 0x60]
mov byte [esp + 0x888], 7
call fcn.100d73c0
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x174]
push eax
call edx
lea esi, [ebx + 0x2138]
mov byte [esp + 0x888], 0xe
call fcn.100df800
lea eax, [esp + 0x174]
push eax
mov byte [esp + 0x88c], 7
call fcn.10103950
cmp dword [ebx + 0x20a8], 0xff
jne 0x100df32c
mov esi, dword [esp + 0x58]
test esi, esi
je 0x100df2f6
mov eax, esi
call fcn.100dc590
push esi
lea ecx, [esp + 0x178]
mov dword [ebx + 0x20a8], eax
call fcn.10004550
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x17c]
push ecx
lea ecx, [ebx + 0x1fb8]
mov byte [esp + 0x894], 0xf
call fcn.10004b90
lea ecx, [esp + 0x174]
mov byte [esp + 0x888], 7
call fcn.100045c0
jmp 0x100df32c
push str.load_scatter_with_UNKNOWN_BBCHIP_TYPE
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x1c], 0xad7
mov byte [esp + 0x20], 0xd2
mov dword [esp + 0x24], str._WARN:
mov dword [esp + 0x28], str.DL_HANDLE::LoadScatter
call fcn.10017c90
add esp, 4
mov edi, ebx
call fcn.100e6e00
test eax, eax
je 0x100df35f
lea eax, [esp + 0x38]
mov byte [esp + 0x888], 0
call fcn.101008e0
mov edx, dword [0x103b3534]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x1391
jmp 0x100df6c8
mov eax, dword [ebx + 0x20a0]
test eax, eax
je 0x100df3ce
cmp dword [eax], 0x2694
jne 0x100df3ce
push str.user_stop_load_scatter
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x1c], 0xae4
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.DL_HANDLE::LoadScatter
call fcn.10017c90
add esp, 4
lea eax, [esp + 0x38]
mov byte [esp + 0x888], 0
call fcn.101008e0
mov eax, dword [0x103b3534]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x3e8
jmp 0x100df6c8
call fcn.100de660
lea ecx, [esp + 0x194]
push ecx
call fcn.10049e70
xor esi, esi
mov byte [esp + 0x888], 0x10
mov dword [esp + 0x40], esi
jmp 0x100df3f4
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x48]
mov eax, dword [edi + 0x20a0]
test eax, eax
je 0x100df40e
cmp dword [eax], 0x2694
je 0x100df544
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x194]
push eax
push esi
call edx
cmp dword [esp + 0x1ac], 0x10
mov bl, byte [esp + 0x74e]
mov eax, dword [esp + 0x198]
jae 0x100df441
lea eax, [esp + 0x198]
push str.PRELOADER
push eax
call fcn.10188c3e
add esp, 8
test eax, eax
jne 0x100df45c
movzx eax, si
mov dword [edi + 0x1f40], eax
cmp dword [esp + 0x1ac], 0x10
mov eax, dword [esp + 0x198]
jae 0x100df474
lea eax, [esp + 0x198]
movzx ecx, si
push eax
push ecx
push edi
push str.DL_HANDLE_0x_08X_:_______u_:___14s__m_flu.
lea esi, [esp + 0x59c]
call fcn.100d8c40
add esp, 0x10
mov edx, esi
lea eax, [edi + 0x1b70]
push edx
call fcn.100da4e0
lea eax, [esp + 0x194]
push eax
test bl, bl
jne 0x100df4dc
mov ebx, edi
call fcn.100ee950
cmp dword [esp + 0x1f8], 0x20
jne 0x100df4e7
mov ecx, dword [esp + 0x1d4]
mov edx, dword [esp + 0x1d8]
mov byte [edi + 0x215c], 1
mov dword [edi + 0x2160], ecx
mov dword [edi + 0x2164], edx
jmp 0x100df4e7
lea ebx, [edi + 0x20c8]
call fcn.100ee950
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp ax, word [esp + 0x54]
jb 0x100df3f0
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov ecx, dword [esp + 0x38]
lea edx, [edi + 0x1f4c]
push edx
mov dword [edi + 0x2098], eax
xor ebx, ebx
lea edx, [edi + 0x1f48]
mov dword [edi + 0x209c], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push edx
lea esi, [edi + 0x1f50]
push esi
call eax
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x100df5a5
mov byte [edi + 0x1f5c], 1
jmp 0x100df5ab
push str.user_stop_load_scatter
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x1c], 0xaf7
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.DL_HANDLE::LoadScatter
call fcn.10017c90
add esp, 4
lea ecx, [esp + 0x194]
push ecx
mov byte [esp + 0x88c], 7
call fcn.1004a030
lea eax, [esp + 0x38]
mov byte [esp + 0x888], 0
call fcn.101008e0
jmp 0x100df00b
mov byte [edi + 0x1f5c], bl
movzx edx, byte [edi + 0x1f5c]
push edx
push 0x1023b514
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_source_common_handle_src_flashtool_handle_internal.cpp
mov dword [esp + 0x20], 0xb31
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.DL_HANDLE::LoadScatter
call fcn.10017c90
mov edi, dword [esp + 0x50]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0xaf3addc7
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 8
mov ecx, edi
mov word [edi + 0x68], ax
call fcn.100dffc0
mov esi, eax
cmp esi, ebx
je 0x100df64f
lea ecx, [esp + 0x194]
push ecx
mov byte [esp + 0x88c], 7
call fcn.1004a030
lea eax, [esp + 0x38]
mov byte [esp + 0x888], bl
call fcn.101008e0
mov edx, dword [0x103b3534]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x100df6c8
call fcn.100dfbe0
push 0xffff
mov ebx, edi
call fcn.100e7720
lea eax, [esp + 0x194]
xor bl, bl
push eax
mov byte [edi + 0x20a4], bl
mov byte [esp + 0x88c], 7
call fcn.1004a030
lea eax, [esp + 0x38]
mov byte [esp + 0x888], bl
call fcn.101008e0
mov ecx, dword [0x103b3534]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x100df6c8
lea eax, [esp + 0x38]
mov byte [esp + 0x888], 0
call fcn.101008e0
mov edx, dword [0x103b3534]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x1393
jmp 0x100df6c8
mov eax, 0x3ea
mov ecx, dword [esp + 0x880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 4