Function at 0x1001d180
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 0xd0
push edi
call eax
test eax, eax
je 0x1001d21c
cmp dword [esp + 0x50], 0x10
jb 0x1001d212
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1016d679
add esp, 4
mov eax, 1
jmp 0x1001d5ac
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 0x1001d28d
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x21f
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_ReadCmd16__:_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 0x1001d283
mov eax, dword [esp + 0x3c]
push eax
call fcn.1016d679
add esp, 4
mov eax, 2
jmp 0x1001d5ac
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 0x1001d2fe
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x225
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_ReadCmd16__:_Write32DataWithEcho__lu_:_send_number_of_word_fail___Err__d_.
push edx
push eax
call fcn.10111350
add esp, 0x14
cmp dword [esp + 0x50], 0x10
jb 0x1001d2f4
mov eax, dword [esp + 0x3c]
push eax
call fcn.1016d679
add esp, 4
mov eax, 3
jmp 0x1001d5ac
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 0x1001d36a
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x22b
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_ReadCmd16__:_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 0x1001d5ac
mov eax, 0x1000
cmp ax, word [esp + 0x14]
ja 0x1001d3c9
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x230
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_ReadCmd16__:_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 0x1001d5ac
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x18], 0
jbe 0x1001d454
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
lea eax, [eax + ecx*2]
push 0x7530
push eax
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x68]
push edi
mov ecx, esi
call eax
mov ebx, eax
test ebx, ebx
jne 0x1001d4c4
call fcn.101116e0
test al, al
je 0x1001d446
lea eax, [esp + 0x54]
cmp dword [esp + 0x18], ebx
jne 0x1001d422
mov ecx, dword [esp + 0x1c]
movzx edx, word [ecx]
push edx
push 0x10212648
jmp 0x1001d42f
mov ecx, dword [esp + 0x20]
movzx edx, word [ecx]
push edx
push str.__0x_04X
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 0x1001d3d7
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 0x1001d515
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x248
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_ReadCmd16__:_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, 6
jmp 0x1001d5ac
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x238
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_ReadCmd16__:_Read16Data___get_data16_fail___offset__lu___Err__d_.
push ecx
push eax
call fcn.10111350
add esp, 0x14
lea ecx, [esp + 0x38]
call fcn.100045c0
mov eax, 5
jmp 0x1001d5ac
mov eax, 0x1000
cmp ax, word [esp + 0x14]
ja 0x1001d549
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x24d
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 7
jmp 0x1001d399
call fcn.101116e0
test al, al
je 0x1001d5a1
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x252
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 8
cmp dword [esp + 0x50], 0x10
mov ecx, dword [esp + 0x3c]
jae 0x1001d583
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_ReadCmd16__:_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