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

Disassembly:
sub esp, 0x81c
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x818], eax
mov eax, dword [esp + 0x820]
push ebp
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x407dca
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4079e1
sub eax, edx
je 0x407dca
push 0x473127
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebp, ebp
mov dword [esp + 0xc], eax
test eax, eax
jle 0x407b42
push ebp
push ebp
push eax
push 0x473127
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xfde9
call ebp
mov esi, eax
test esi, esi
jg 0x407a43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_change_utf8_to_widechar_err___d
push 0x80
call fcn.00431310
add esp, 0xc
jmp 0x407dca
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00441dab
mov edi, eax
add esp, 4
lea eax, [esi + esi + 2]
push eax
push 0
push edi
call fcn.00446e10
mov ecx, dword [esp + 0x18]
add esp, 0xc
push esi
push edi
push ecx
push 0x473127
push 0
push 0xfde9
call ebp
test eax, eax
jg 0x407ab1
push edi
call fcn.0044423f
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_change_widechar_to_chinese_err___d
push 0x80
call fcn.00431310
add esp, 0xc
jmp 0x407dca
push 0
push 0
push 0
push 0
push esi
push edi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x407a8a
inc eax
push eax
call fcn.00441dab
mov ebp, eax
mov eax, dword [esp + 0x10]
add esp, 4
inc eax
push eax
push 0
push ebp
call fcn.00446e10
mov edx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0
push edx
push ebp
push esi
push edi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
test eax, eax
jg 0x407b3a
call fcn.0044423f
add esp, 4
push ebp
call fcn.0044423f
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_change_widechar_to_chinese_err___d
push 0x80
call fcn.00431310
add esp, 0xc
jmp 0x407dca
call fcn.0044423f
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor eax, eax
push eax
push 0x80
push 2
push eax
push 1
push 0x10000000
push ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x407b8b
test ebp, ebp
je 0x407b79
push ebp
call fcn.0044423f
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Failed_to_createfile..._s_err___d
jmp 0x407dbd
push 0
lea eax, [esp + 0x14]
push eax
push str._info_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push str._info_
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407bd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Failed_to_writefile..._s_err___d
push 0x80
call fcn.00431310
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407dca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
test ebp, ebp
je 0x407be9
push ebp
jmp 0x407bee
push 0x473127
push str.Title
push str.info
call esi
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push str.ActionID
push str.info
call esi
mov edx, dword [esp + 0x1c]
push ebx
push edx
push str.SubKey
push str.info
call esi
push ebx
push str.G3A2UK_K0P0ND_L0EFSU_FH5300
push 0x473500
push str.info
call esi
push ebx
push str.CRCHRC6XYNV4G
push 0x473504
push str.info
call esi
push ebx
push 0
push str.Extend
push str.info
call esi
test ebp, ebp
je 0x407c5e
push ebp
call fcn.0044423f
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x407b79
push 0x3ff
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.00446e10
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407da9
cmp dword [esp + 0x14], 0
je 0x407da9
push 0x3ff
lea eax, [esp + 0x425]
push 0
push eax
mov byte [esp + 0x42c], 0
call fcn.00446e10
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407ce8
lea ecx, [esp + 0x20]
push ecx
sub eax, edx
lea edx, [esp + 0x424]
push 0x400
push edx
call fcn.00423dc0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jg 0x407d34
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
push str.Failed_to_Encrypt..._s
push 0x80
call fcn.00431310
add esp, 0xc
jmp 0x407dca
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edx, [esp + 0x42c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407d8d
cmp dword [esp + 0x10], ebp
jne 0x407d8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.004426a0
add esp, 0x81c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push str.Failed_to_WriteFile..._s
push 0x80
call fcn.00431310
add esp, 0xc
jmp 0x407dca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Failed_to_ReadFile..._s_err___d
push 0x80
call fcn.00431310
add esp, 0x10
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004426a0
add esp, 0x81c
ret