Function at 0x403280
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x434edc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
mov eax, dword [0x451114]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x38]
xor ebx, ebx
push str.SOFTWARELoaderModuleUpgradeSerialPageULParams
push ecx
mov dword [esp + 0xc8], ebx
call fcn.00416df9
add esp, 8
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
lea esi, [edi + 0x320]
push edx
push 0xf003f
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4032ff
mov ecx, esi
call fcn.00403550
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esi], ecx
je 0x403337
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea ecx, [esp + 0x50]
push ebx
push ecx
push SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x403337
mov ecx, esi
call fcn.00403550
mov edx, dword [esp + 0x10]
mov dword [esi], edx
mov ebp, dword [edi + 0x278]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call ebx
inc eax
push eax
mov eax, dword [esi]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.UploadAddress
push eax
call ebp
mov eax, dword [edi + 0x27c]
push eax
mov dword [esp + 0x18], eax
call ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
inc eax
push eax
push ecx
push 1
push 0
push str.UploadSize
push edx
call ebp
mov edx, dword [esi]
mov eax, dword [edi + 0x280]
lea ecx, [esp + 0x28]
push 4
push ecx
push 4
push 0
push str.UploadTotalFlash
push edx
mov dword [esp + 0x40], eax
call ebp
mov eax, dword [0x451114]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x24]
lea ecx, [edi + 0x200]
push edx
mov byte [esp + 0xc4], 1
mov dword [esp + 0x30], ecx
call fcn.0042ae8c
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x18], eax
call ebx
mov ecx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push eax
push 1
push 0
push str.UploadFileName
push ecx
call ebp
mov eax, dword [0x451114]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov edx, dword [edi + 0x21c]
push 0
push 0
push 0x146
push edx
mov byte [esp + 0xd0], 3
mov dword [esp + 0x20], 0
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 8
mov dword [esp + 0x14], eax
jle 0x403426
lea ecx, [eax - 8]
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x10]
mov ecx, edi
cmp ecx, eax
jge 0x40348c
mov ecx, dword [esp + 0x10]
mov edx, edi
sub edx, ecx
lea eax, [esp + 0x18]
inc edx
push edx
push str.UploadFile_d
push eax
call fcn.00426b2a
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
push edi
call fcn.00430c11
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
call ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x38]
push eax
push 1
push 0
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x403430
cmp eax, 8
jge 0x4034d2
lea edi, [eax + 1]
lea eax, [esp + 0x18]
push edi
push str.UploadFile_d
push eax
call fcn.00426b2a
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x1c], ecx
push 0x455208
call ebx
mov edx, dword [esp + 0x1c]
inc eax
push eax
mov eax, dword [esi]
push 0x455208
push 1
push 0
push edx
push eax
call ebp
mov eax, edi
cmp eax, 8
jl 0x403491
mov eax, dword [esi]
test eax, eax
je 0x4034e5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
lea ecx, [esp + 0x20]
mov byte [esp + 0xc0], 2
call fcn.0042830e
lea ecx, [esp + 0x18]
mov byte [esp + 0xc0], 1
call fcn.0042830e
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 0
call fcn.0042830e
lea ecx, [esp + 0x30]
mov dword [esp + 0xc0], 0xffffffff
call fcn.0042830e
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret