Function at 0x404bb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x850
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x404bd9
mov eax, dword [ebp + 0xc]
push eax
call fcn.004482c0
add esp, 4
test eax, eax
jne 0x404be0
xor eax, eax
jmp 0x405201
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x414], 0
cmp dword [ebp - 0x820], 0
jle 0x404e4b
push 0
push 0
mov edx, dword [ebp - 0x820]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x828], 0
jg 0x404c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_change_utf8_to_widechar_err___d
call fcn.00402b50
add esp, 8
xor eax, eax
jmp 0x405201
mov eax, dword [ebp - 0x828]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00443ea2
add esp, 4
mov dword [ebp - 0x830], eax
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x82c], eax
mov ecx, dword [ebp - 0x828]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0x82c]
push eax
call fcn.004472f0
add esp, 0xc
mov ecx, dword [ebp - 0x828]
push ecx
mov edx, dword [ebp - 0x82c]
push edx
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x404cfd
mov edx, dword [ebp - 0x82c]
mov dword [ebp - 0x834], edx
mov eax, dword [ebp - 0x834]
push eax
call fcn.0040e0a7
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_change_widechar_to_chinese_err___d
call fcn.00402b50
add esp, 8
xor eax, eax
jmp 0x405201
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x828]
push ecx
mov edx, dword [ebp - 0x82c]
push edx
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
jg 0x404d65
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x838], eax
mov ecx, dword [ebp - 0x838]
push ecx
call fcn.0040e0a7
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_change_widechar_to_chinese_err___d
call fcn.00402b50
add esp, 8
xor eax, eax
jmp 0x405201
mov edx, dword [ebp - 0x824]
add edx, 1
push edx
call fcn.00443ea2
add esp, 4
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp - 0x83c]
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x824]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x414]
push edx
call fcn.004472f0
add esp, 0xc
push 0
push 0
mov eax, dword [ebp - 0x824]
push eax
mov ecx, dword [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x828]
push edx
mov eax, dword [ebp - 0x82c]
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x404e26
mov ecx, dword [ebp - 0x82c]
mov dword [ebp - 0x840], ecx
mov edx, dword [ebp - 0x840]
push edx
call fcn.0040e0a7
add esp, 4
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x844], eax
mov ecx, dword [ebp - 0x844]
push ecx
call fcn.0040e0a7
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_change_widechar_to_chinese_err___d
call fcn.00402b50
add esp, 8
xor eax, eax
jmp 0x405201
mov edx, dword [ebp - 0x82c]
mov dword [ebp - 0x848], edx
mov eax, dword [ebp - 0x848]
push eax
call fcn.0040e0a7
add esp, 4
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x418], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0xffffffff
jne 0x404ed9
cmp dword [ebp - 0x414], 0
je 0x404eb8
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x84c], edx
mov eax, dword [ebp - 0x84c]
push eax
call fcn.0040e0a7
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
push str.Failed_to_createfile..._s_err___d
call fcn.00402b50
add esp, 0xc
xor eax, eax
jmp 0x405201
push 0
lea edx, [ebp - 0x418]
push edx
push str._info_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str._info_
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
push str.Failed_to_writefile..._s_err___d
call fcn.00402b50
add esp, 0xc
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x405201
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x40c], 0
cmp dword [ebp - 0x414], 0
je 0x404f6d
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp - 0x414]
push edx
push str.Title
push str.info
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x404f86
mov eax, dword [ebp + 0x20]
push eax
push 0x4758ac
push str.Title
push str.info
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.ActionID
push str.info
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.SubKey
push str.info
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0x475ba4
push str.info
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 0x475ba0
push str.info
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push str.Extend
push str.info
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp - 0x414], 0
je 0x40502c
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x850], edx
mov eax, dword [ebp - 0x850]
push eax
call fcn.0040e0a7
add esp, 4
mov dword [ebp - 0x414], 0
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0xffffffff
jne 0x405076
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0x20]
push edx
push str.Failed_to_createfile..._s_err___d
call fcn.00402b50
add esp, 0xc
xor eax, eax
jmp 0x405201
mov byte [ebp - 0x818], 0
push 0x3ff
push 0
lea eax, [ebp - 0x817]
push eax
call fcn.004472f0
add esp, 0xc
push 0
lea ecx, [ebp - 0x81c]
push ecx
push 0x400
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4050c2
cmp dword [ebp - 0x81c], 0
jne 0x4050ee
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0x20]
push edx
push str.Failed_to_ReadFile..._s_err___d
call fcn.00402b50
add esp, 0xc
xor eax, eax
jmp 0x405201
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.004472f0
add esp, 0xc
mov dword [ebp - 0x410], 0
lea ecx, [ebp - 0x818]
push ecx
call fcn.004482c0
add esp, 4
push eax
lea edx, [ebp - 0x818]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
call fcn.0040c300
add esp, 0x10
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jg 0x405177
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x818]
push edx
push str.Failed_to_Encrypt..._s
call fcn.00402b50
add esp, 8
xor eax, eax
jmp 0x405201
push 0
push 0
push 0
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x410]
push eax
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4051cd
mov eax, dword [ebp - 0x418]
cmp eax, dword [ebp - 0x410]
je 0x4051ef
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x20]
push edx
push str.Failed_to_WriteFile..._s
call fcn.00402b50
add esp, 8
xor eax, eax
jmp 0x405201
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret