Function at 0x487e40
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50687b
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x54f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [ebp - 0x12c], esp
xor ebx, ebx
push 0x1a
mov edi, edx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.CCodeManage:_Init:start._r_n
mov dword [ebp - 0x130], edi
mov byte [ecx], bl
call fcn.004016d0
push ebx
push esi
call fcn.0048e800
cmp dword [ebp + 8], ebx
jne 0x487ebe
push 0x74
push str.CodeManage.cpp
push str.NULL____pBasicCmd
call dword [sym.imp.MSVCR100.dll__wassert]
add esp, 0xc
cmp edi, ebx
jne 0x487ed7
push 0x75
push str.CodeManage.cpp
push str.NULL____exFlashInfo
call dword [sym.imp.MSVCR100.dll__wassert]
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [esi + 0x250], eax
call fcn.00493c40
call fcn.00492840
cmp eax, 5
jne 0x4882ea
lea ecx, [ebp - 0x48]
push ebx
push ecx
call fcn.004eac70
push str.FWupdateToolParam.ini
push eax
lea edx, [ebp - 0xd4]
push edx
mov dword [ebp - 4], ebx
call fcn.004040e0
add esp, 0x14
mov edi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], edi
jb 0x487f30
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0xffffffffffffffff
mov eax, 0xf
push ebx
lea edx, [ebp - 0xd4]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], ebx
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ecx], bl
call fcn.00401460
call fcn.004ea0b0
add esp, 0x1c
cmp eax, ebx
jne 0x487f8b
cmp dword [ebp - 0xc0], edi
jb 0x487f84
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
xor eax, eax
jmp 0x48873c
mov ecx, dword [ebp - 0xd4]
cmp dword [ebp - 0xc0], edi
jae 0x487f9f
lea ecx, [ebp - 0xd4]
sub esp, 0x1c
mov edi, esp
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x12c], esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 0x12c], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x487fc1
sub eax, dword [ebp - 0x12c]
push eax
push ecx
mov ecx, edi
call fcn.004016d0
lea ecx, [ebp - 0x138]
call fcn.004e9900
mov byte [ebp - 4], 3
push ebx
mov edi, 0xf
push 0x51d12c
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x160], ebx
mov byte [ebp - 0x170], bl
call fcn.004016d0
mov byte [ebp - 4], 4
push edi
push str.FW_VERSION_TYPE
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
call fcn.004016d0
mov byte [ebp - 4], 5
push 2
push 0x52e97c
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
call fcn.004016d0
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xf0]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 6
call fcn.004e98d0
cmp dword [ebp - 0xdc], 0x10
jb 0x48809e
mov ecx, dword [ebp - 0xf0]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov byte [ebp - 0xf0], bl
cmp dword [ebp - 0xa4], 0x10
jb 0x4880c9
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x15c], 0x10
jb 0x4880f8
mov eax, dword [ebp - 0x170]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
push ebx
push 0x51d12c
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x160], ebx
mov byte [ebp - 0x170], bl
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], ebx
mov byte [ebp - 0x154], bl
call fcn.004016d0
mov byte [ebp - 4], 0xb
push 0xa
push str.FW_VERSION
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
call fcn.004016d0
mov byte [ebp - 4], 0xc
push 2
push 0x52e97c
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
call fcn.004016d0
lea ecx, [ebp - 0x154]
push ecx
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0xd
call fcn.004e98d0
cmp dword [ebp - 0x88], 0x10
jb 0x4881be
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 0x9c], bl
cmp dword [ebp - 0xf8], 0x10
jb 0x4881e9
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xfc], ebx
mov byte [ebp - 0x10c], bl
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x140], 0x10
jb 0x488218
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], ebx
mov byte [ebp - 0x154], bl
cmp dword [ebp - 0x1c], ebx
je 0x48827d
cmp dword [ebp - 0x70], ebx
je 0x48827d
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x130]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00488760
lea ecx, [ebp - 0x80]
mov esi, eax
call fcn.00432240
lea ecx, [ebp - 0x2c]
call fcn.00432240
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 2
call fcn.004e9710
lea ecx, [ebp - 0xd4]
call fcn.00432240
mov eax, esi
jmp 0x48873c
cmp dword [ebp - 0x6c], 0x10
jb 0x488290
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
jb 0x4882ac
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 2
call fcn.004e9710
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc0], 0x10
jb 0x4882e4
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov edi, dword [ebp - 0x130]
lea edx, [ebp - 0x48]
push ebx
push edx
call fcn.004eac70
push str._ssdCode
push eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 4], 0x12
call fcn.004040e0
add esp, 0x14
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x34], 0x10
jb 0x488327
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
push str.SPISecondBootcodeCfgSPISecondBoot.ini
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00401bd0
add esp, 0xc
push eax
lea ecx, [esi + 0x154]
mov byte [ebp - 4], 0x15
call fcn.004013e0
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x18], 0x10
jb 0x488373
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
push str.SPISecondBoot_flycode
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00401bd0
add esp, 0xc
push eax
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 0x16
call fcn.004013e0
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x18], 0x10
jb 0x4883b2
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
lea ecx, [edi + 0x168]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x12c], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4883c3
sub eax, dword [ebp - 0x12c]
push eax
push ecx
lea ecx, [esi + 0x90]
call fcn.004016d0
lea ecx, [edi + 0x262]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x12c], edx
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4883f0
sub eax, dword [ebp - 0x12c]
push eax
push ecx
lea ecx, [esi + 0x58]
call fcn.004016d0
lea edx, [edi + 0x35c]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x12c], ecx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x488418
sub eax, dword [ebp - 0x12c]
lea ecx, [esi + 4]
push eax
push edx
call fcn.004016d0
lea ecx, [edi + 0x456]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x12c], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x488440
sub eax, dword [ebp - 0x12c]
push eax
push ecx
lea ecx, [esi + 0x74]
call fcn.004016d0
add edi, 0x550
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x488462
sub eax, ecx
push eax
lea ecx, [esi + 0x20]
push edi
call fcn.004016d0
push str.WriteBootAlgTabScan.bin
lea edi, [esi + 0x20]
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00401bd0
add esp, 0xc
push eax
lea ecx, [esi + 0xac]
mov byte [ebp - 4], 0x18
call fcn.004013e0
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x18], 0x10
jb 0x4884b1
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
lea edx, [ebp - 0x80]
push ebx
push edx
call fcn.004eac70
push str._ssdCode_flycodempRDT
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x19
call fcn.004040e0
add esp, 0x14
push eax
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0x1a
call fcn.004013e0
cmp dword [ebp - 0x18], 0x10
jb 0x4884f1
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jb 0x488515
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
cmp dword [ebp + 0xc], ebx
je 0x488529
push 9
push str._SingleCE
lea ecx, [esi + 4]
call fcn.004015b0
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.004eac70
push str.UI_3conf_bin_sataLog_sataDev3.bin
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 0x1b
call fcn.00401bd0
add esp, 0x14
push eax
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 0x1c
call fcn.004013e0
mov byte [ebp - 4], 0x1b
cmp dword [ebp - 0x34], 0x10
jb 0x488573
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
push str.UI_3conf_bin_sataLog_sataIdy16.bin
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00401bd0
add esp, 0xc
push eax
lea ecx, [esi + 0x100]
mov byte [ebp - 4], 0x1d
call fcn.004013e0
mov byte [ebp - 4], 0x1b
cmp dword [ebp - 0x34], 0x10
jb 0x4885af
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
push str.UI_3conf_bin_sataLog_sataDir0.bin
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00401bd0
add esp, 0xc
push eax
lea ecx, [esi + 0x11c]
mov byte [ebp - 4], 0x1e
call fcn.004013e0
mov byte [ebp - 4], 0x1b
cmp dword [ebp - 0x34], 0x10
jb 0x4885eb
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
lea ecx, [esi + 0x170]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0xffffffffffffffff
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edi
mov byte [ecx], bl
call fcn.00401460
call fcn.00486a80
add esp, 0x20
mov ecx, esi
call fcn.00489b20
test eax, eax
jne 0x4886fb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x28
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.CCodeManage:_Init:Load_file_data_fail__r_n
mov byte [ecx], bl
call fcn.004016d0
push 1
push esi
call fcn.0048e800
mov ecx, dword [esi + 0x250]
mov edx, dword [ecx]
mov eax, dword [edx + 0x88]
call eax
movzx eax, ax
cmp eax, ebx
je 0x48868b
mov ecx, dword [esi + 0x250]
mov edx, dword [ecx]
mov edx, dword [edx + 0x8c]
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x12c], esp
push eax
call edx
jmp 0x4886ac
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0xa
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push 0x51d66c
mov byte [ecx], bl
call fcn.004016d0
mov esi, dword [esi + 0x268]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, 0x10
cmp dword [ebp - 0x50], esi
jb 0x4886d2
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x114], esi
jb 0x487f84
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
xor eax, eax
jmp 0x48873c
mov esi, 0x10
cmp dword [ebp - 0x50], esi
jb 0x488712
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x114], esi
jb 0x488737
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.mfc100.dll_Ordinal_1296]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8d32
mov esp, ebp
pop ebp
ret 8