Function at 0x403c2d
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4635ac
call fcn.0043e9a8
mov esi, 0x4872a4
xor ebx, ebx
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 0xd], bl
call fcn.00401c03
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00401c03
mov esi, 0x104
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.00402209
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x403c92
push str.CSymProductHelper::_ModifyProdKeyHtm_436__:_Failed_to_GetTempPath
call fcn.004085ae
pop ecx
jmp 0x403e71
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bd9
push esi
lea ecx, [ebp - 0x14]
call fcn.00402209
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bd9
lea eax, [ebp - 0x14]
push str.prodkey.htm
push eax
call fcn.00417145
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
pop ecx
pop ecx
push ebx
mov edi, 0x80
push edi
push 3
push ebx
push 1
push 1
push eax
call esi
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x403d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSymProductHelper::_ModifyProdKeyHtm_456__:_Unable_to_create_handle_to_source_file__Err:__d
call fcn.004085ae
pop ecx
jmp 0x403c8c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], eax
call fcn.00402626
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403d3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSymProductHelper::_ModifyProdKeyHtm_464__:_Unable_to_read_source_prodkey_file__Err:__d
jmp 0x403cfa
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.004017de
push ebx
push str._td_id_id_td12_
lea ecx, [ebp - 0x18]
call fcn.0040207a
push ebx
push str._td_id_id_td13_
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
call fcn.0040207a
push eax
push str.__tr_
lea ecx, [ebp - 0x18]
call fcn.0040207a
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x18]
call fcn.004026b2
mov dword [ebp - 0x28], eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004026f8
push dword [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403838
add esp, 0xc
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.004014ff
push ebx
push str._td_id_id_td10_
lea ecx, [ebp - 0x1c]
call fcn.0040207a
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 3
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push str.dotted
call fcn.0040207a
cmp eax, 0xffffffff
je 0x403e03
push 6
push eax
lea ecx, [ebp - 0x1c]
call fcn.004024b8
dec dword [ebp - 0x28]
jne 0x403de3
push ebx
push edi
push 2
push ebx
push 2
push 0x1f01ff
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x403e36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSymProductHelper::_ModifyProdKeyHtm_499__:_Unable_to_create_handle_to_dest_file__Err:__d
call fcn.004085ae
pop ecx
pop ecx
jmp 0x403e62
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
push ebx
lea edx, [ebp - 0x38]
push edx
push ecx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403e5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSymProductHelper::_ModifyProdKeyHtm_505__:_Failed_to_write_prodkey_HTML_file__Err:__d
jmp 0x403e2d
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.004014ff
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00402be3
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004014ff
mov al, byte [ebp - 0xd]
call fcn.0043ea80
ret 4