Function at 0x10001f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1000f768
push 0x10006980
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x10011040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push str.Savegame1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xa4], esi
push 0x70
push esi
lea eax, [ebp - 0xa0]
push eax
call fcn.10007f90
add esp, 0xc
mov dword [ebp - 4], esi
mov eax, 0x10014210
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001f80
sub eax, edx
mov dword [ebp - 0x20], eax
mov eax, 0x10013ce8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001f94
sub eax, edx
mov dword [ebp - 0x24], eax
mov eax, 0x10014000
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001fa8
sub eax, edx
mov dword [ebp - 0x28], eax
mov eax, 0x10013ef8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001fc0
sub eax, edx
mov dword [ebp - 0x30], eax
mov eax, 0x10014318
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001fd4
sub eax, edx
mov ebx, eax
mov eax, 0x10013df0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001fe7
sub eax, edx
mov edi, eax
mov eax, 0x10014528
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002000
sub eax, edx
mov ecx, eax
mov eax, 0x10014938
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10002013
sub eax, esi
add eax, ecx
add eax, edi
add eax, ebx
add eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
lea esi, [eax + ecx + 0x44]
mov dword [ebp - 0xa4], 0x10013df0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0xa0], 0x10013ef8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x9c], 0x10013ce8
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x98], 0x10014000
mov dword [ebp - 0x1c], 4
cmp dword [0x10013ffc], 0
mov dword [ebp - 0x94], 0x1001207c
jne 0x10002093
mov dword [ebp - 0x94], 0x10012080
mov dword [ebp - 0x1c], 5
mov eax, 0x10014318
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100020a2
sub eax, edx
mov dword [ebp - 0x90], 0x10014318
jne 0x100020c1
mov dword [ebp - 0x90], 0x1000ecc8
mov dword [ebp - 0x1c], 6
mov eax, 0x10014210
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100020d0
sub eax, edx
mov dword [ebp - 0x8c], 0x10014210
jne 0x100020ef
mov dword [ebp - 0x8c], 0x1000ecc8
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x88], str.False
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x3c], 0x10014528
mov dword [ebp - 0x38], 0x10014938
mov dword [ebp - 0x34], 0x10013bcc
push esi
call fcn.100043ea
mov ebx, eax
push esi
push 0
push ebx
call fcn.10007f90
add esp, 0x10
mov eax, ebx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10002133
mov dx, word [0x1000ecd4]
mov word [eax], dx
mov cl, byte [0x1000ecd6]
mov byte [eax + 2], cl
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x10002172
mov edi, ebx
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10002160
mov dx, word [0x1000ecd8]
mov word [edi], dx
mov eax, dword [ebp + ecx*4 - 0xa4]
test eax, eax
je 0x100021a9
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10002180
sub eax, ecx
mov esi, ecx
mov edi, ebx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10002190
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0x1d
jl 0x10002153
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.10004026
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100021e6
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret