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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10196313
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
push 0x2710
push edi
push 1
mov dword [esp + 0xf4], edi
mov edx, dword [ebx]
mov eax, dword [edx + 0x70]
push 0xd4
push esi
call eax
cmp eax, edi
je 0x1001c8d8
cmp eax, 1
je 0x1001c8ba
cmp eax, 2
je 0x1001c8ba
cmp eax, 3
je 0x1001c8ba
cmp eax, 4
jne 0x1001c8d8
lea ecx, [esp + 0x38]
call fcn.100045c0
mov eax, 0xfd6
jmp 0x1001ccd3
cmp dword [esp + 0x50], 0x10
jb 0x1001c8ce
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.1016d679
add esp, 4
mov eax, 0xfd7
jmp 0x1001ccd3
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov edx, dword [edx + 0x78]
push 1
push eax
push esi
mov ecx, ebx
call edx
mov edi, eax
test edi, edi
je 0x1001c957
cmp edi, 1
je 0x1001ca46
cmp edi, 2
je 0x1001ca46
cmp edi, 3
je 0x1001ca46
cmp edi, 4
je 0x1001c8a7
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x169
lea esi, [esp + 0x28]
call fcn.10111280
mov ecx, dword [ebp + 0xc]
push edi
push ecx
mov byte [esp + 0xf0], 1
mov edx, dword [0x103b321c]
push str.BRom_MT6276::BRom_WriteCmd32__:_Write32DataWithEcho_0x_08X_:_send_base_address_fail___Err__d_.
push edx
push eax
call fcn.10111350
mov esi, dword [esp + 0x30]
add esp, 0x14
mov byte [esp + 0xe8], 0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebx]
mov edx, dword [edx + 0x78]
push 1
push eax
push esi
mov ecx, ebx
call edx
mov edi, eax
test edi, edi
je 0x1001c9da
cmp edi, 1
je 0x1001ca46
cmp edi, 2
je 0x1001ca46
cmp edi, 3
je 0x1001ca46
cmp edi, 4
je 0x1001c8a7
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x174
lea esi, [esp + 0x28]
call fcn.10111280
mov ecx, dword [ebp + 0x14]
push edi
push ecx
mov byte [esp + 0xf0], 2
mov edx, dword [0x103b321c]
push str.BRom_MT6276::BRom_WriteCmd32__:_Write32DataWithEcho__lu_:_send_number_of_dword_fail___Err__d_.
push edx
push eax
call fcn.10111350
mov esi, dword [esp + 0x30]
add esp, 0x14
mov byte [esp + 0xe8], 0
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
push 0x7530
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, ebx
call edx
mov edi, eax
test edi, edi
je 0x1001ca68
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x17a
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 3
movzx ecx, word [esp + 0x14]
mov edx, dword [0x103b321c]
push edi
push ecx
push str.BRom_MT6276::BRom_WriteCmd32__:_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 0x1001ccd3
cmp dword [esp + 0x50], 0x10
jb 0x1001c8ce
mov eax, dword [esp + 0x3c]
push eax
call fcn.1016d679
add esp, 4
mov eax, 0xfd7
jmp 0x1001ccd3
mov eax, 0x1000
cmp ax, word [esp + 0x14]
ja 0x1001cac7
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x17f
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_WriteCmd32__:_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 0x1001ccd3
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x18], 0
jbe 0x1001cbbd
lea esp, [esp]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + edx*4]
mov eax, dword [ebx]
mov edx, dword [eax + 0x78]
push 1
push ecx
push esi
mov ecx, ebx
call edx
mov edi, eax
test edi, edi
je 0x1001cb68
cmp edi, 1
je 0x1001cc29
cmp edi, 2
je 0x1001cc29
cmp edi, 3
je 0x1001cc29
cmp edi, 4
je 0x1001c8a7
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x18c
lea esi, [esp + 0x28]
call fcn.10111280
mov ecx, dword [esp + 0x18]
push edi
push ecx
mov byte [esp + 0xf0], 5
mov edx, dword [0x103b321c]
push str.BRom_MT6276::BRom_WriteCmd32__:_Write32DataWithEcho___write_data32_fail___offset__lu___Err__d_.
push edx
push eax
call fcn.10111350
add esp, 0x14
mov byte [esp + 0xe8], 0
call fcn.101116e0
mov esi, dword [esp + 0x18]
test al, al
je 0x1001cbab
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x54]
test esi, esi
jne 0x1001cb8b
mov ecx, dword [eax]
push ecx
push str.0x_08X
jmp 0x1001cb94
mov ecx, dword [eax + esi*4]
push ecx
push str.__0x_08X
push edx
call fcn.1016d80a
add esp, 0xc
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
call fcn.10017010
inc esi
cmp esi, dword [ebp + 0x14]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x1c]
jb 0x1001cae0
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
push 0x7530
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, ebx
call edx
mov edi, eax
test edi, edi
je 0x1001cc3c
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x19c
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_WriteCmd32__:_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 0x1001ccd3
lea ecx, [esp + 0x38]
call fcn.100045c0
mov eax, 0xfd7
jmp 0x1001ccd3
mov eax, 0x1000
cmp ax, word [esp + 0x14]
ja 0x1001cc70
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, str._ERROR:
or cl, 0xff
mov eax, 0x1a1
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 7
jmp 0x1001ca97
call fcn.101116e0
test al, al
je 0x1001ccc8
push str.FlashToolLib_sv5_common_generic_src_brom_mt6276.cpp
mov edx, 0x10201619
xor cl, cl
mov eax, 0x1a6
lea esi, [esp + 0x28]
call fcn.10111280
mov byte [esp + 0xe8], 8
cmp dword [esp + 0x50], 0x10
mov ecx, dword [esp + 0x3c]
jae 0x1001ccaa
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 0x10215fe8
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