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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x473004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x634], esi
call fcn.00407b80
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x463ffc
push 0x1f5
push esi
mov dword [ebp - 0x630], eax
mov dword [eax], esi
call ebx
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
push 0x463ffc
push 0x1f6
push esi
call ebx
push eax
call edi
push 0x463ffc
push 0x1f7
push esi
call ebx
push eax
call edi
push 0x463ffc
push 0x1f8
push esi
call ebx
push eax
call edi
push 0x463ffc
push 0x1f9
push esi
call ebx
push eax
call edi
push 0x463ffc
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 - 0x634]
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 - 0x634]
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.004071d0
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.00408bf0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sUpdateFW
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x414]
push eax
call fcn.004086f0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 0x18
test eax, eax
jne 0x409b0b
push 0
lea eax, [ebp - 0x414]
push eax
call ebx
mov edi, dword [ebp - 0x630]
lea esi, [edi + 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 dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.004086f0
add esp, 0x18
test eax, eax
jne 0x409b43
push eax
push esi
call ebx
push esi
push 0x3e8
push str.FWPACKAGEZIP
call fcn.00408e10
push esi
lea eax, [ebp - 0x20c]
push str._sUpdateFWInfo.ini
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
push str.Package_Error
push str.TITLE
push str.UPDATEINFO
call ebx
lea eax, [ebp - 0x414]
push eax
lea esi, [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00408490
add esp, 0xc
push esi
push dword [ebp - 0x634]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x20c]
mov esi, edi
push eax
push 0x40
lea eax, [esi + 0x6230]
push eax
push 0x463ffc
push str.SOCID
push str.UPDATEINFO
call ebx
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [esi + 0x62b0]
push eax
push 0x463ffc
push str.ModelName
push str.UPDATEINFO
call ebx
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [esi + 0x64b8]
push eax
push 0x463ffc
push str.FWVersion
push str.UPDATEINFO
call ebx
lea eax, [ebp - 0x20c]
push eax
push 0x40
lea eax, [esi + 0x66c0]
push eax
push 0x463ffc
push str.NEWVERSION
push str.UPDATEINFO
call ebx
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 [esi + 0x7744], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.bIsSATA
push str.UPDATEINFO
call edi
mov dword [esi + 0x775c], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.bRemoveFtlBuildNumCheck
push str.UPDATEINFO
call edi
mov dword [esi + 0x7748], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.bSetVersionBeforeUpdateFW
push str.UPDATEINFO
call edi
mov dword [esi + 0x774c], eax
lea eax, [ebp - 0x20c]
push eax
push 0x400
add esi, 0x6740
push esi
push 0x463ffc
push str.BeforeMessage
push str.UPDATEINFO
call ebx
push 0x465138
push str._BR_
push esi
call fcn.004087f0
mov esi, dword [ebp - 0x630]
lea eax, [ebp - 0x20c]
add esp, 0xc
add esi, 0x6f40
push eax
push 0x400
push esi
push 0x463ffc
push str.AfterMessage
push str.UPDATEINFO
call ebx
push 0x465138
push str._BR_
push esi
call fcn.004087f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push str.PowerCtrl
push str.UPDATEINFO
call edi
mov ecx, dword [ebp - 0x630]
mov ebx, dword [ebp - 0x634]
push 1
push ebx
mov byte [ecx + 0x7740], al
call fcn.00409d90
push ebx
call fcn.0040a5c0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040b1e5
mov esp, ebp
pop ebp
ret