Function at 0x408ef0
Capabilities:
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x472004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x630], esi
call fcn.00407340
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x46290c
push 0x1f5
push esi
mov dword [ebp - 0x634], eax
mov dword [eax], esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
push 0x46290c
push 0x1f6
push esi
call ebx
push eax
call edi
push 0x46290c
push 0x1f7
push esi
call ebx
push eax
call edi
push 0x46290c
push 0x1f8
push esi
call ebx
push eax
call edi
push 0x46290c
push 0x1f9
push esi
call ebx
push eax
call edi
push 0x46290c
push 0x1fe
push esi
call ebx
push eax
call edi
lea eax, [ebp - 0x62c]
push eax
push 0x1fe
push esi
call ebx
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
call esi
mov eax, dword [ebp - 0x620]
lea edi, [eax + eax]
sub edi, dword [ebp - 0x628]
lea eax, [ebp - 0x62c]
push eax
push dword [ebp - 0x630]
add edi, 5
call esi
mov edx, dword [ebp - 0x628]
sub edi, edx
mov eax, dword [ebp - 0x624]
mov ecx, dword [ebp - 0x62c]
sub eax, ecx
mov esi, dword [sym.imp.USER32.dll_MoveWindow]
push 1
push edi
mov edi, dword [ebp - 0x630]
push eax
push edx
push ecx
push edi
call esi
lea eax, [ebp - 0x62c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
mov eax, dword [ebp - 0x624]
sub eax, dword [ebp - 0x62c]
push 5
push eax
mov eax, dword [ebp - 0x620]
sub eax, dword [ebp - 0x628]
sub eax, 5
push eax
push 0
push 0x3eb
push edi
call ebx
push eax
call esi
push edi
call fcn.004069d0
add esp, 4
push 0
push 0x40
push 0x40
push 1
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
push esi
push 1
push 0x172
push 0x3ec
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push 0xfffffffffffffff2
push edi
call dword [sym.imp.USER32.dll_SetClassLongW]
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00408290
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sUpdateFW
push eax
call edi
lea eax, [ebp - 0x414]
push eax
call fcn.004076c0
add esp, 0x18
test eax, eax
jne 0x4090ba
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [ebp - 0x634]
lea esi, [ebx + 0x21c]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edx
push eax
lea eax, [ebp - 0x414]
push eax
push str._s_I64d
push esi
call edi
push esi
call fcn.004076c0
add esp, 0x18
test eax, eax
jne 0x4090f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push 0x3e8
push str.FWPACKAGEZIP
call fcn.004084b0
push esi
lea eax, [ebp - 0x20c]
push str._sUpdateFWInfo.ini
push eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
add esp, 0x18
lea esi, [ebx + 0x14]
push eax
push 0x104
push esi
push str.Package_Error
push str.TITLE
push str.UPDATEINFO
call edi
push esi
push dword [ebp - 0x630]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x20c]
push eax
push 0x40
lea eax, [ebx + 0x6024]
push eax
push 0x46290c
push str.SOCID
push str.UPDATEINFO
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x46290c
push str.ModelName
push str.UPDATEINFO
call edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
je 0x4091bc
lea eax, [ebp - 0x414]
push eax
lea eax, [ebx + 0x60a4]
push 0x4634a8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x46290c
push str.FWVersion
push str.UPDATEINFO
call edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x409209
lea eax, [ebp - 0x414]
push eax
lea eax, [ebx + 0x62ac]
push 0x4634a8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x40
lea eax, [ebx + 0x64b4]
push eax
push 0x46290c
push str.NEWVERSION
push str.UPDATEINFO
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [ebp - 0x20c]
push eax
push 3
push str.iInternalFWVersionCheckPart
push str.UPDATEINFO
call edi
mov dword [ebx + 0x7538], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.bIsSATA
push str.UPDATEINFO
call edi
mov dword [ebx + 0x7548], eax
lea esi, [ebx + 0x6534]
lea eax, [ebp - 0x20c]
push eax
push 0x400
push esi
push 0x46290c
push str.BeforeMessage
push str.UPDATEINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x4639a0
push str._BR_
push esi
call fcn.00407f30
add esp, 0xc
lea eax, [ebp - 0x20c]
lea esi, [ebx + 0x6d34]
push eax
push 0x400
push esi
push 0x46290c
push str.AfterMessage
push str.UPDATEINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x4639a0
push str._BR_
push esi
call fcn.00407f30
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push str.PowerCtrl
push str.UPDATEINFO
call edi
mov byte [ebx + 0x7534], al
mov ebx, dword [ebp - 0x630]
push 1
push ebx
call fcn.00409320
push ebx
call fcn.00409a70
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040a46c
mov esp, ebp
pop ebp
ret