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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10196273
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x10279264]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x10279264]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], eax
mov byte [esp + 0x3c], al
push 0x2710
push eax
push 1
mov dword [esp + 0xf4], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
push 0xd1
push edi
call eax
test eax, eax
je 0x1001d67c
cmp dword [esp + 0x50], 0x10
jb 0x1001d672
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1016d679
add esp, 4
mov eax, 1
jmp 0x1001d9f3
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
push 1
push eax
push edi
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
je 0x1001d6ed
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x270
lea esi, [esp + 0x28]
call fcn.10111280
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
mov byte [esp + 0xf0], 1
mov edx, dword [0x103b321c]
push str.BRom_MT6276::BRom_ReadCmd32__:_Write32DataWithEcho_0x_08X_:_send_base_address_fail___Err__d_.
push edx
push eax
call fcn.10111350
add esp, 0x14
cmp dword [esp + 0x50], 0x10
jb 0x1001d6e3
mov eax, dword [esp + 0x3c]
push eax
call fcn.1016d679
add esp, 4
mov eax, 2
jmp 0x1001d9f3
mov eax, dword [ebp + 0x14]
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
push 1
push eax
push edi
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
je 0x1001d75e
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x276
lea esi, [esp + 0x28]
call fcn.10111280
mov ecx, dword [ebp + 0x14]
push ebx
push ecx
mov byte [esp + 0xf0], 2
mov edx, dword [0x103b321c]
push str.BRom_MT6276::BRom_ReadCmd32__:_Write32DataWithEcho__lu_:_send_number_of_dword_fail___Err__d_.
push edx
push eax
call fcn.10111350
add esp, 0x14
cmp dword [esp + 0x50], 0x10
jb 0x1001d754
mov eax, dword [esp + 0x3c]
push eax
call fcn.1016d679
add esp, 4
mov eax, 3
jmp 0x1001d9f3
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x7530
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
je 0x1001d7ca
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x27c
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 3
movzx ecx, word [esp + 0x14]
mov edx, dword [0x103b321c]
push ebx
push ecx
push str.BRom_MT6276::BRom_ReadCmd32__:_Read16Data__lu_:_get_status_fail___Err__d_.
push edx
push eax
call fcn.10111350
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.100045c0
mov eax, 4
jmp 0x1001d9f3
mov eax, 0x1000
cmp ax, word [esp + 0x14]
ja 0x1001d829
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x281
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 4
movzx ecx, word [esp + 0x14]
mov edx, dword [0x103b321c]
push ecx
push str.BRom_MT6276::BRom_ReadCmd32__:_Read16Data__:_Status_returns_error__0x_04X__
push edx
push eax
call fcn.10111350
movzx esi, word [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x38]
call fcn.100045c0
mov eax, esi
jmp 0x1001d9f3
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x18], 0
jbe 0x1001d8b2
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
lea eax, [eax + ecx*4]
push 0x7530
push eax
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x6c]
push edi
mov ecx, esi
call eax
mov ebx, eax
test ebx, ebx
jne 0x1001d922
call fcn.101116e0
test al, al
je 0x1001d8a4
lea eax, [esp + 0x54]
cmp dword [esp + 0x18], ebx
jne 0x1001d881
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push edx
push str.0x_08X
jmp 0x1001d88d
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push edx
push str.__0x_08X
push eax
call fcn.1016d80a
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x3c]
call fcn.10017010
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebp + 0x14]
jb 0x1001d837
mov edx, dword [esi]
mov edx, dword [edx + 0x68]
push 0x7530
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, esi
call edx
mov edi, eax
test edi, edi
je 0x1001d95c
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x299
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 6
movzx ecx, word [esp + 0x14]
mov edx, dword [0x103b321c]
push edi
push ecx
push str.BRom_MT6276::BRom_ReadCmd32__:_Read16Data__lu_:_get_status_fail___Err__d_.
push edx
push eax
call fcn.10111350
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.100045c0
mov eax, 5
jmp 0x1001d9f3
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x289
lea esi, [esp + 0x28]
call fcn.10111280
mov edx, dword [esp + 0x18]
push ebx
push edx
mov byte [esp + 0xf0], 5
mov ecx, dword [0x103b321c]
push str.BRom_MT6276::BRom_ReadCmd32__:_Read32Data___get_data32_fail___offset__lu___Err__d_.
push ecx
jmp 0x1001d7ae
mov eax, 0x1000
cmp ax, word [esp + 0x14]
ja 0x1001d990
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x29e
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 7
jmp 0x1001d7f9
call fcn.101116e0
test al, al
je 0x1001d9e8
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x2a3
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 8
cmp dword [esp + 0x50], 0x10
mov ecx, dword [esp + 0x3c]
jae 0x1001d9ca
lea ecx, [esp + 0x3c]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, dword [0x103b321c]
push edx
push str.BRom_MT6276::BRom_ReadCmd32__:_0x_08X__d___s_.
push ecx
push eax
call fcn.10111350
add esp, 0x18
lea ecx, [esp + 0x38]
call fcn.100045c0
xor eax, eax
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.1016cb16
mov esp, ebp
pop ebp
ret 0x10