Function at 0x4126d0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x43de73
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x45302c]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45302c]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 0x8b8]
test eax, eax
je 0x41271a
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [esi + 0x488]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.Initialization...
lea ecx, [esi + 0x468]
call fcn.004199c6
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Silent
call fcn.00404d70
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x441b28
mov dword [esp + 0x13c], 0
call fcn.00404d70
or ebp, 0xffffffff
mov dword [esp + 0x138], ebp
call fcn.0040de50
add esp, 8
cmp byte [0x45447c], 1
mov dword [0x455138], eax
jne 0x41279a
cmp byte [0x454481], 1
jne 0x41279a
mov ecx, dword [esi + 0x20]
push 0
push ecx
jmp 0x4127a5
cmp eax, 1
jne 0x4127ab
mov edx, dword [esi + 0x20]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.PatchFv
call fcn.00404d70
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.UpdateBlock
mov dword [esp + 0x13c], 1
call fcn.00404d70
mov dword [esp + 0x138], ebp
call fcn.0040de50
add esp, 8
lea ecx, [esi + 0x414]
push 0x443df8
mov dword [esi + 0x74], eax
call fcn.004199c6
push 0
call sub.ISCFLASH.dll_DLL_SMI_IsSupport
add esp, 4
test eax, eax
jge 0x41283a
push str.DLL_SMI_IsSupport_fail_n
call fcn.0040c0d0
add esp, 4
push 0
push 0
push str.BIOS_did_not_support_InsydeFlash_
mov ecx, esi
call fcn.00415412
push 4
mov ecx, esi
mov byte [0x455c50], 1
call fcn.0040fae0
jmp 0x412b84
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.flag
call fcn.00404d70
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.AC_Adapter
mov dword [esp + 0x13c], 2
call fcn.00404d70
mov dword [esp + 0x138], ebp
call fcn.0040de50
add esp, 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.BatteryCheck
mov edi, eax
call fcn.00404d70
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.AC_Adapter
mov dword [esp + 0x13c], 3
call fcn.00404d70
mov dword [esp + 0x138], ebp
call fcn.0040de50
add esp, 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.BatteryBound
mov ebx, eax
call fcn.00404d70
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.AC_Adapter
mov dword [esp + 0x13c], 4
call fcn.00404d70
mov dword [esp + 0x138], ebp
call fcn.0040de50
add esp, 8
cmp edi, 1
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov ebp, eax
jne 0x412939
lea ecx, [ecx]
push 0x45513e
call sub.ISCFLASH.dll_DLL_CheckPowerStatus
add esp, 4
test eax, eax
setne al
test al, al
mov byte [0x45513f], al
jne 0x412939
push 5
push str.Caution_
push str.InsydeFlash_can_not_run_in_battery_mode._Plug_in_AC_and_try_again.
push 0
call edi
cmp eax, 2
je 0x41298e
cmp byte [0x45513f], 0
je 0x412900
cmp ebx, 1
jne 0x4129e2
push 0x45513e
call sub.ISCFLASH.dll_DLL_CheckPowerStatus
push 0xfe
test eax, eax
lea edx, [esp + 0x2d]
setne cl
push 0
push edx
mov byte [0x45513f], cl
mov byte [esp + 0x34], 0
call fcn.00424980
mov al, byte [0x45513e]
add esp, 0x10
cmp al, 0xff
jne 0x4129b4
push 0
push str.Error
push str.Please_insert_system_battery.
push 0
call edi
jmp 0x412825
push str.NO_AC_POWER_CONNECT.
lea ecx, [esi + 0x5f8]
call fcn.004199c6
mov eax, dword [0x45245c]
mov byte [0x455c50], 1
mov dword [0x454478], eax
jmp 0x412b84
test ebp, ebp
je 0x4129e2
movzx eax, al
cmp eax, ebp
jge 0x4129e2
push ebp
push ebp
push eax
lea eax, [esp + 0x30]
push str.Battery_capacity_not_enough___d____d___please_plug_in_AC_adapter_until__d__.
push eax
call fcn.00424536
add esp, 0x14
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
jmp 0x41281e
push 0x45513d
push 0x455a40
push 0x455940
mov byte [0x45513d], 0
call sub.ISCFLASH.dll_DLL_SMI_DetectROMInfo
add esp, 0xc
test eax, eax
jl 0x412825
test byte [0x45513d], 0x10
je 0x412a38
push 0
lea ecx, [esi + 0x21c]
call fcn.00419a60
push 0
lea ecx, [esi + 0x1c8]
call fcn.00419a60
push 0
lea ecx, [esi + 0x174]
call fcn.00419a60
test byte [0x45513d], 0x20
je 0x412a68
push 0
lea ecx, [esi + 0x3c0]
call fcn.00419a60
push 0
lea ecx, [esi + 0x414]
call fcn.00419a60
push 0
lea ecx, [esi + 0x120]
call fcn.00419a60
push 0x455a40
lea ecx, [esp + 0x24]
call fcn.0040e3d0
push 0x455940
lea ecx, [esp + 0x20]
mov dword [esp + 0x134], 5
call fcn.0040e3d0
mov edx, dword [esp + 0x20]
mov bl, 6
push edx
lea ecx, [esi + 0x414]
mov byte [esp + 0x134], bl
call fcn.004199c6
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esi + 0x21c]
call fcn.004199c6
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x442100
call fcn.00404d70
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.ForceFlash
mov byte [esp + 0x13c], 7
call fcn.00404d70
mov byte [esp + 0x138], bl
call fcn.0040de50
add esp, 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x444778
mov edi, eax
call fcn.00404d70
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.ForceFlash
mov byte [esp + 0x13c], 8
call fcn.00404d70
mov byte [esp + 0x138], bl
call fcn.0040de50
add esp, 8
cmp edi, 0x1869f
jne 0x412b35
xor edi, edi
cmp eax, 0x1869f
jne 0x412b3e
xor eax, eax
push 0x45513c
push eax
push edi
call sub.ISCFLASH.dll_DLL_SMI_PlatformROMMAP
add esp, 0xc
test eax, eax
jl 0x412b62
push 0x455c58
call sub.ISCFLASH.dll_DLL_SMI_DetectFlashInfo
add esp, 4
test eax, eax
jge 0x412b72
push 4
mov ecx, esi
mov byte [0x455c50], 1
call fcn.0040fae0
lea ecx, [esp + 0x1c]
call fcn.00401220
lea ecx, [esp + 0x20]
call fcn.00401220
mov al, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00424179
add esp, 0x120
ret