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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x3e8
mov eax, dword [ebp + 0x10]
push eax
call sub.AR_V.dll_AR_ExistEx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jne 0x4030fc
push 0x50
push 0x40ab00
push 0x3f
push 0x32
call sub.LGG.dll_LGG_LoadString
push 0xa4
lea ecx, [ebp - 4]
push ecx
call sub.TOOLS_W.dll_TO_NewMemory
push 0xa4
push 0
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
push 0x40ab00
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x37
push 0x40ace0
push 1
push 0x32
call sub.LGG.dll_LGG_LoadString
push 0x30
push 0x40ace0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
push ecx
call sub.TOOLS_W.dll_TO_FreeMemory
xor eax, eax
jmp 0x40327c
push 0x3e8
mov edx, dword [ebp + 0xc]
push edx
call sub.AR_V.dll_AR_ExistEx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0x40318d
push 0x50
push 0x40ab00
push 0x42
push 0x32
call sub.LGG.dll_LGG_LoadString
push 0xa4
lea eax, [ebp - 4]
push eax
call sub.TOOLS_W.dll_TO_NewMemory
mov ecx, dword [ebp + 0xc]
push ecx
push 0x40ab00
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x37
push 0x40ace0
push 1
push 0x32
call sub.LGG.dll_LGG_LoadString
push 0x21
push 0x40ace0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call sub.TOOLS_W.dll_TO_FreeMemory
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x403186
jmp 0x40318d
xor eax, eax
jmp 0x40327c
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
push 0
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40323a
cmp dword [ebp - 0x10], 0xffffffff
je 0x40323a
push 0x800
lea ecx, [ebp - 0x18]
push ecx
call sub.TOOLS_W.dll_TO_NewMemory
push 0
lea edx, [ebp - 0x14]
push edx
push 0x800
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14], 0
jne 0x4031e1
mov eax, dword [ebp - 0x18]
push eax
call sub.TOOLS_W.dll_TO_FreeMemory
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403277
push 0x50
push 0x40ab00
push 0x3f
push 0x32
call sub.LGG.dll_LGG_LoadString
push 0x37
push 0x40ace0
push 1
push 0x32
call sub.LGG.dll_LGG_LoadString
push 0x30
push 0x40ace0
push 0x40ab00
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 8], eax
xor eax, eax
jmp 0x40327c
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc