Function at 0x1010d4b0
Capabilities:
Encrypt or decrypt via wincrypt
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b33e4
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x10245db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], 0
mov eax, dword [0x102c8e58]
push eax
mov ecx, 0x102c8e5c
call fcn.10044f80
mov ecx, dword [0x102c8e58]
call fcn.10044d30
movzx ecx, al
test ecx, ecx
jne 0x1010d569
movzx edx, byte [ebp - 0x91]
push edx
push str..BaseWarGuard
lea ecx, [ebp - 0x58]
call fcn.1009c430
mov ecx, eax
call fcn.100597b0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100450b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
or eax, 1
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [0x102c8e58]
push edx
call fcn.1010d440
add esp, 8
movzx eax, al
test eax, eax
je 0x1010d569
mov dword [ebp - 0x9c], 1
jmp 0x1010d573
mov dword [ebp - 0x9c], 0
mov cl, byte [ebp - 0x9c]
mov byte [ebp - 0x81], cl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x8c]
and edx, 1
je 0x1010d5a0
and dword [ebp - 0x8c], 0xfffffffe
lea ecx, [ebp - 0x2c]
call fcn.10044fc0
movzx eax, byte [ebp - 0x81]
test eax, eax
je 0x1010d81c
mov ecx, dword [0x1024ca14]
push ecx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xbc], esp
movzx edx, byte [ebp - 0x92]
push edx
push 0x102072f0
lea ecx, [ebp - 0x74]
call fcn.10110150
mov ecx, eax
call fcn.100c69c0
push eax
mov ecx, esi
call fcn.100450b0
lea eax, [ebp - 0x48]
push eax
call fcn.1004c7c0
add esp, 0x24
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xac], ecx
mov edx, dword [ebp - 0xac]
push edx
mov ecx, 0x102c8e5c
call fcn.1004dd80
lea ecx, [ebp - 0x48]
call fcn.10044fc0
mov dword [ebp - 0x7c], 0
push 0
push 0x80
push 3
push 0
push 1
push 1
mov ecx, dword [0x102c8e58]
call fcn.10044d80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x88], eax
push 0
push 0x80
push 4
push 0
push 1
push 2
mov ecx, 0x102c8e5c
call fcn.10044d80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x88], 0xffffffff
je 0x1010d7de
cmp dword [ebp - 0x90], 0xffffffff
je 0x1010d7de
mov byte [ebp - 0x75], 0
lea eax, [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [ebp - 0xb4]
shl edx, 0x20
or edx, dword [ebp - 0xb8]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
and eax, 0x80000001
jns 0x1010d6c9
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1010d6d9
mov dword [ebp - 0xa0], 0x20
jmp 0x1010d6e3
mov dword [ebp - 0xa0], 0x1f
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
push eax
call fcn.1016ea00
add esp, 4
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
je 0x1010d7de
push 0
lea ecx, [ebp - 0x80]
push ecx
push 4
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010d74f
push 0
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xa4]
push edx
push 0
mov eax, dword [ebp - 0x7c]
push eax
call fcn.101571d0
add esp, 0xc
mov dword [ebp - 0x80], 0
push 0
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010d7d6
mov edx, dword [ebp - 0x80]
cmp edx, dword [ebp - 0x98]
jae 0x1010d79c
mov byte [ebp - 0x75], 1
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
push 0
push 1
push 0
mov edx, dword [0x1024ca28]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1010d7d6
push 0
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, byte [ebp - 0x75]
test ecx, ecx
je 0x1010d76b
cmp dword [ebp - 0x7c], 0
je 0x1010d7f0
mov edx, dword [ebp - 0x7c]
push edx
call fcn.1016d000
add esp, 4
cmp dword [ebp - 0x88], 0
je 0x1010d806
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x90], 0
je 0x1010d81c
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10154220
mov esp, ebp
pop ebp
ret