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

Disassembly:
push 0xffffffffffffffff
push 0x1019d618
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
xor ebx, ebx
mov dword [esp + 0x30], eax
xor eax, eax
mov esi, edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x44], bl
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov word [esp + 0x61], ax
mov byte [esp + 0x63], al
cmp ecx, ebx
jne 0x100c02c3
mov eax, 0x3ea
jmp 0x100c0d54
push str.wait_SYNC_CHAR.
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x1c], 0x1a5
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 4
push 1
push 0x1388
push ebx
lea ecx, [esp + 0x50]
push ecx
push esi
push ebp
mov ebx, 1
call fcn.1004a830
test eax, eax
jne 0x100c0380
jmp 0x100c0320
mov al, byte [esp + 0x44]
mov dword [esp + 0x14], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x24], str.Pre_SyncWithDA
lea edi, [esp + 0x14]
cmp al, 0xc0
je 0x100c038a
movzx edx, al
push edx
push str.non_SYNC_CHAR_0x_02X__received_from_DA.
mov dword [esp + 0x20], 0x1af
mov byte [esp + 0x24], 0xd2
mov dword [esp + 0x28], str._WARN:
call fcn.10017c90
add esp, 8
push 1
push 0x1388
push 0
lea eax, [esp + 0x50]
push eax
push esi
push ebp
mov ebx, 1
call fcn.1004a830
test eax, eax
je 0x100c0320
mov eax, 0xfa1
jmp 0x100c0d54
push 0xc0
push 0xc0
xor bl, bl
push str.Get_the_message_from_target__0x_02X_0x_02X_.
mov dword [esp + 0x24], 0x1b7
mov byte [esp + 0x28], bl
mov dword [esp + 0x2c], str._DEBUG:
call fcn.10017c90
mov edx, dword [esp + 0x38]
mov ecx, 0x6592
add esp, 0xc
cmp word [edx + 0x2c], cx
jne 0x100c03ff
push str.MT6592__enable_to_send_phone_info_to_target.
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x1c], 0x1c1
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 4
mov byte [ebp + 0x30], 1
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + 0x2c]
mov ecx, 0x6573
cmp ax, cx
je 0x100c075a
mov edx, 0x6575
cmp ax, dx
je 0x100c075a
mov ecx, 0x6577
cmp ax, cx
je 0x100c075a
push str._wait_for_DA_H_W_detection_report_
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x1c], 0x1cb
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 4
push 1
push 0x2710
push 1
lea edx, [esp + 0x34]
push edx
push esi
push ebp
mov ebx, 4
call fcn.1004a830
test eax, eax
jne 0x100c0380
mov ecx, dword [esp + 0x28]
movzx edx, byte [esp + 0x2a]
movzx eax, cl
shl eax, 8
movzx ecx, ch
or eax, ecx
movzx ecx, byte [esp + 0x2b]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x2c]
shl eax, 8
or eax, ecx
push eax
push str.Get_the_nand_ret__0x_02X_.
lea edi, [esp + 0x1c]
mov dword [edx + 0x5c], eax
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1d3
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 8
push 1
push 0x2710
push 1
lea eax, [esp + 0x34]
push eax
push esi
push ebp
mov ebx, 2
call fcn.1004a830
mov ebx, dword [esp + 0x2c]
test eax, eax
jne 0x100c0523
mov ax, word [esp + 0x28]
movzx cx, al
movzx dx, ah
shl cx, 8
or cx, dx
mov word [ebx + 0x70], cx
movzx eax, word [ebx + 0x70]
push eax
push str.Receive_NAND_ID_Count_d
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1d6
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.Pre_SyncWithDA
call fcn.10017c90
xor ecx, ecx
lea eax, [ebx + 0x72]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
add esp, 8
mov dword [eax + 0x1c], ecx
mov dword [esp + 0x28], ecx
cmp cx, word [ebx + 0x70]
jae 0x100c05e3
mov ebx, eax
push ebx
push ebp
mov al, 1
mov edx, esi
call fcn.1004ab10
movzx edx, word [ebx]
push edx
push str.Receive_Nand_ID0x_x
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1de
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.Pre_SyncWithDA
call fcn.10017c90
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
movzx edx, word [ecx + 0x70]
inc eax
add esp, 8
add ebx, 2
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x100c0586
push 1
push 0x2710
push 1
lea eax, [esp + 0x34]
push eax
push esi
push ebp
mov ebx, 4
call fcn.1004a830
test eax, eax
jne 0x100c0380
mov ecx, dword [esp + 0x28]
movzx edx, byte [esp + 0x2a]
mov ebx, dword [esp + 0x2c]
movzx eax, cl
shl eax, 8
movzx ecx, ch
or eax, ecx
movzx ecx, byte [esp + 0x2b]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
push eax
push str.Get_the_emmc_ret__0x_02X_.
lea edi, [esp + 0x1c]
mov dword [ebx + 0x11c], eax
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x1e6
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 8
lea edi, [ebx + 0x160]
push edi
push esi
mov al, 1
push ebp
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
jne 0x100c0380
lea eax, [ebx + 0x164]
push eax
mov dword [esp + 0x38], eax
push esi
mov al, 1
push ebp
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
jne 0x100c0380
lea eax, [ebx + 0x168]
push eax
mov dword [esp + 0x2c], eax
push esi
mov al, 1
push ebp
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
jne 0x100c0380
add ebx, 0x16c
push ebx
push esi
mov al, 1
push ebp
mov ecx, 0x2710
mov dl, al
call fcn.1004abb0
test eax, eax
jne 0x100c0380
mov edx, dword [ebx]
push edx
mov edx, dword [esp + 0x38]
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov eax, dword [edx]
push ecx
mov ecx, dword [edi]
push eax
push ecx
push str.Get_the_emmc_id__0x_02X_0x_02X_0x_02X_0x_02X_.
lea edi, [esp + 0x28]
mov dword [esp + 0x28], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x2c], 0x1f5
mov dword [esp + 0x34], str._DEBUG:
mov dword [esp + 0x38], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 0x14
push 1
push 1
lea edx, [esp + 0x4c]
push edx
push esi
push ebp
mov ebx, 1
mov byte [esp + 0x58], 0x5a
call fcn.1004a550
test eax, eax
jne 0x100c0d1d
xor bl, bl
push str.wait_DA_MAJOR_VER__DA_MINOR_VER.
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x1c], 0x204
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 4
push 1
push 0x2710
push 1
lea eax, [esp + 0x50]
push eax
push esi
push ebp
mov ebx, 3
call fcn.1004a830
test eax, eax
jne 0x100c0380
mov cl, byte [esp + 0x45]
mov ebx, dword [esp + 0x2c]
mov al, byte [esp + 0x44]
mov byte [ebx + 3], cl
movzx ecx, cl
movzx edx, al
push ecx
push edx
push str.DA_v_u._u
lea edi, [esp + 0x20]
mov byte [ebx + 2], al
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x24], 0x211
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.Pre_SyncWithDA
call fcn.10017c90
mov al, 0xff
add esp, 0xc
mov dword [esp + 0x14], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x24], str.Pre_SyncWithDA
lea edi, [esp + 0x14]
cmp byte [esp + 0x46], al
jne 0x100c0848
push str.DA_cannot_recognize_targets_baseband_chip_
mov dword [esp + 0x1c], 0x218
mov byte [esp + 0x20], al
mov dword [esp + 0x24], str._ERROR:
call fcn.10017c90
add esp, 4
mov eax, 0xc0f
jmp 0x100c0d54
push str._send_brom_version__
mov dword [esp + 0x1c], 0x220
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], str._DEBUG:
call fcn.10017c90
mov bl, byte [ebx + 0x34]
movzx eax, bl
add esp, 4
push eax
push eax
push str.BROM_Version:__d_0x_02X_.
lea edi, [esp + 0x20]
mov byte [esp + 0x50], bl
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x24], 0x228
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 0xc
push 1
push 1
lea eax, [esp + 0x4c]
push eax
push esi
push ebp
mov ebx, 1
call fcn.1004a550
test eax, eax
jne 0x100c0d1d
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x35]
mov byte [esp + 0x44], al
movzx eax, al
push eax
push eax
push str.BLOADER_Version:__d_0x_02X_.
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x24], 0x230
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
push esi
push ebp
call fcn.1004a550
test eax, eax
jne 0x100c0d1d
mov ebx, str.Pre_SyncWithDA
push str._send_storage_device_and_external_ram_device_config_
lea edi, [esp + 0x18]
mov dword [esp + 0x18], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x1c], 0x237
mov byte [esp + 0x20], al
mov dword [esp + 0x24], str._DEBUG:
mov dword [esp + 0x28], ebx
call fcn.10017c90
mov ecx, dword [esp + 0x34]
mov al, byte [ecx + 0x88]
mov cl, byte [ecx + 0x8c]
mov byte [esp + 0x48], al
movzx eax, al
add esp, 4
push eax
push eax
mov byte [esp + 0x4d], cl
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x23b
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], ebx
call sym.FlashToolLib.v1.dll_HWChipSelectToString
push eax
push str.NOR_CFG:_m_nor_chip_select_0___s__0x_02X_.
lea edi, [esp + 0x20]
call fcn.10017c90
movzx eax, byte [esp + 0x51]
add esp, 0xc
push eax
push eax
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x23d
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], ebx
call sym.FlashToolLib.v1.dll_HWChipSelectToString
push eax
push str.NOR_CFG:_m_nor_chip_select_1___s__0x_02X_.
lea edi, [esp + 0x20]
call fcn.10017c90
add esp, 0xc
push 1
push 1
lea edx, [esp + 0x4c]
push edx
push esi
push ebp
mov ebx, 2
call fcn.1004a550
test eax, eax
jne 0x100c0d1d
mov eax, dword [esp + 0x30]
mov al, byte [eax + 0x90]
mov byte [esp + 0x44], al
movzx eax, al
push eax
push eax
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x24b
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.Pre_SyncWithDA
call sym.FlashToolLib.v1.dll_HWChipSelectToString
push eax
push str.NAND_CFG:_m_nand_chip_select__s__0x_02X_.
lea edi, [esp + 0x20]
call fcn.10017c90
add esp, 0xc
push 1
push 1
lea ecx, [esp + 0x4c]
push ecx
push esi
push ebp
mov ebx, 1
call fcn.1004a550
test eax, eax
jne 0x100c0d1d
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x94]
test eax, eax
je 0x100c0a8a
mov ebx, dword [eax]
jmp 0x100c0a8f
mov ebx, 0x7007ffff
push ebx
push str.NAND_CFG:_m_nand_acccon_0x_08X_.
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x258
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 8
mov eax, ebx
push 1
shr eax, 0x18
push 1
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
mov edx, ebx
push esi
shr ecx, 0x10
shr edx, 8
mov byte [esp + 0x3b], bl
push ebp
mov ebx, 4
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3e], dl
call fcn.1004a550
test eax, eax
jne 0x100c0d1d
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + 0x9c]
push ebp
push ecx
push esi
call fcn.100bf1c0
add esp, 0xc
test eax, eax
jne 0x100c0d1d
movzx edx, byte [ebx + 0xa0]
push edx
push str.force_charge__d_
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x265
mov byte [esp + 0x24], al
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.Pre_SyncWithDA
call fcn.10017c90
mov al, byte [ebx + 0xa0]
add esp, 8
test al, al
jne 0x100c0b6d
mov byte [esp + 0x44], 1
jmp 0x100c0b79
dec al
neg al
sbb al, al
and al, 2
mov byte [esp + 0x44], al
push 1
push 1
lea eax, [esp + 0x4c]
push eax
push esi
push ebp
mov ebx, 1
call fcn.1004a550
test eax, eax
jne 0x100c0d1d
mov ebx, dword [esp + 0x30]
movzx ecx, byte [ebx + 0xa1]
push ecx
push str.reset_key__d_
lea edi, [esp + 0x1c]
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x277
mov byte [esp + 0x24], al
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 8
cmp byte [ebx + 0xa1], 0x50
push 1
push 1
lea eax, [esp + 0x4c]
push eax
push esi
setne dl
push ebp
mov ebx, 1
mov byte [esp + 0x58], dl
call fcn.1004a550
test eax, eax
jne 0x100c0d1d
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x30]
movzx ecx, al
mov byte [esp + 0x44], al
mov eax, ecx
call fcn.10011db0
push eax
push ecx
push str.EXT_CLOCK:_ext_clock_0x_02X___s_.
lea edi, [esp + 0x20]
mov dword [esp + 0x20], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x24], 0x286
mov byte [esp + 0x28], 0
mov dword [esp + 0x2c], str._DEBUG:
mov dword [esp + 0x30], str.Pre_SyncWithDA
call fcn.10017c90
add esp, 0xc
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
push esi
push ebp
call fcn.1004a550
test eax, eax
jne 0x100c0d1d
mov eax, dword [esp + 0x30]
mov esi, dword [eax + 0x9c]
lea edi, [esp + 0x3c]
call fcn.10137f40
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
movzx ecx, al
push ecx
push str.MSDC_BOOT_CH:_channel_0x_02X_.
lea edi, [esp + 0x1c]
mov byte [esp + 0x4c], al
mov dword [esp + 0x1c], str.FlashToolLib_sv5_common_generic_src_flashtool_api.cpp
mov dword [esp + 0x20], 0x291
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], str._DEBUG:
mov dword [esp + 0x2c], str.Pre_SyncWithDA
call fcn.10017c90
mov eax, dword [esp + 0x40]
add esp, 8
push 1
push 1
lea edx, [esp + 0x4c]
push edx
push eax
push ebp
mov ebx, 1
call fcn.1004a550
mov dword [esp + 0x70], 0xffffffff
mov esi, dword [esp + 0x40]
test eax, eax
je 0x100c0d24
test esi, esi
je 0x100c0d1d
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100c0d1d
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100c0d1d
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, 0xfa4
jmp 0x100c0d54
test esi, esi
je 0x100c0d52
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100c0d52
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100c0d52
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1016cb16
add esp, 0x60
ret