Function at 0x40f990
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c6d0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x12c0
call fcn.0041d430
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x12d0]
mov ecx, 0x4b0
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x485010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1190], 0xffffffff
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*4 + 0x61a84], 0
jne 0x40fa05
xor eax, eax
jmp 0x41007c
push 0x7d0
push 0
lea eax, [ebp - 0x116c]
push eax
call fcn.00418870
add esp, 0xc
push 0x7d0
push 0
lea eax, [ebp - 0x994]
push eax
call fcn.00418870
add esp, 0xc
push 0xb
push 0
lea eax, [ebp - 0x1bc]
push eax
call fcn.00418870
add esp, 0xc
push 0x32
push 0
lea eax, [ebp - 0x1a8]
push eax
call fcn.00418870
add esp, 0xc
push 0x7d0
push 0
lea eax, [ebp - 0x994]
push eax
call fcn.00418870
add esp, 0xc
push 0x7d0
push 0
lea eax, [ebp - 0x116c]
push eax
call fcn.00418870
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x40fb19
cmp dword [ebp + 8], 0xffffffff
jne 0x40fb19
mov dword [ebp - 0x1178], 0
jmp 0x40fab2
mov eax, dword [ebp - 0x1178]
add eax, 1
mov dword [ebp - 0x1178], eax
cmp dword [ebp - 0x1178], 0xbb8
jge 0x40fb17
mov eax, dword [ebp - 0x1178]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax*4 + 0x64af4], 0
je 0x40fb15
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1178]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4 + 0x64af4]
add eax, 4
push eax
call fcn.0041adb0
add esp, 8
test eax, eax
jne 0x40fb15
push 0xb
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.00413650
add esp, 0xc
mov eax, dword [ebp - 0x1178]
mov dword [ebp + 8], eax
jmp 0x40fb17
jmp 0x40faa3
jmp 0x40fb41
cmp dword [ebp + 8], 0xffffffff
je 0x40fb41
push 0xb
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax*4 + 0x64af4]
add edx, 4
push edx
lea eax, [ebp - 0x1bc]
push eax
call fcn.00413650
add esp, 0xc
cmp dword [ebp + 8], 0xffffffff
jne 0x40fb4e
xor eax, eax
jmp 0x41007c
push 0xff
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.00418870
add esp, 0xc
push 0x3f
push 0
lea eax, [ebp - 0x16c]
push eax
call fcn.00418870
add esp, 0xc
push str.Account
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x1bc]
mov esi, esp
push edx
push str.AscII_d
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00418a80
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041acc0
add esp, 8
push str..txt
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
mov al, byte [ebp + 0x18]
mov byte [ebp - 0x12d0], al
cmp byte [ebp - 0x12d0], 1
je 0x40fc6e
cmp byte [ebp - 0x12d0], 3
je 0x40fd5a
jmp 0x410055
push 0x46eb10
lea eax, [ebp - 0x124]
push eax
call fcn.0041ba10
add esp, 8
mov dword [ebp - 0x119c], eax
cmp dword [ebp - 0x119c], 0
jne 0x40fce0
mov esi, esp
lea eax, [ebp - 0x1bc]
push eax
push str._X__Account_none_exist_:_Name__s_
push 0x4884a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00418a80
push 0x4884a0
call fcn.00413cf0
add esp, 4
cmp dword [ebp - 0x119c], 0
je 0x40fcd9
mov eax, dword [ebp - 0x119c]
push eax
call fcn.0041b1b0
add esp, 4
xor eax, eax
jmp 0x41007c
mov esi, esp
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.account_character__s____s_n
lea edx, [ebp - 0x1a8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp esi, esp
call fcn.00418a80
mov eax, dword [ebp - 0x119c]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
call fcn.004190a0
add esp, 4
push eax
push 1
lea edx, [ebp - 0x1a8]
push edx
call fcn.0041d100
add esp, 0x10
cmp dword [ebp - 0x119c], 0
je 0x40fd46
mov eax, dword [ebp - 0x119c]
push eax
call fcn.0041b1b0
add esp, 4
mov eax, 1
jmp 0x41007c
mov esi, esp
mov eax, dword [ebp + 0x14]
push eax
push str._X__Character_Delete__s_
push 0x4884a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00418a80
push 0x4884a0
call fcn.00413cf0
add esp, 4
mov esi, esp
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.account_character__s____s_n
lea edx, [ebp - 0x1a8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp esi, esp
call fcn.00418a80
push 0x46e9c8
lea eax, [ebp - 0x124]
push eax
call fcn.0041ba10
add esp, 8
mov dword [ebp - 0x119c], eax
cmp dword [ebp - 0x119c], 0
jne 0x40fe09
mov eax, dword [ebp + 0x1c]
push eax
push 0
push 0
push 0xfb02
push 0xfb02
mov ecx, dword [ebp - 0x1c]
call fcn.00410240
cmp dword [ebp - 0x119c], 0
je 0x40fe02
mov eax, dword [ebp - 0x119c]
push eax
call fcn.0041b1b0
add esp, 4
xor eax, eax
jmp 0x41007c
mov eax, dword [ebp - 0x119c]
push eax
call fcn.0041b2d0
add esp, 4
test eax, eax
jne 0x40fe98
push 0x64
push 0
lea eax, [ebp - 0x1208]
push eax
call fcn.00418870
add esp, 0xc
mov eax, dword [ebp - 0x119c]
push eax
push 0x64
lea ecx, [ebp - 0x1208]
push ecx
call fcn.0041b3f0
add esp, 0xc
lea eax, [ebp - 0x1a8]
push eax
call fcn.004190a0
add esp, 4
push eax
lea ecx, [ebp - 0x1a8]
push ecx
lea edx, [ebp - 0x1208]
push edx
call fcn.0041a3e0
add esp, 0xc
test eax, eax
je 0x40fe89
lea eax, [ebp - 0x1208]
push eax
lea ecx, [ebp - 0x994]
push ecx
call fcn.0041acc0
add esp, 8
jmp 0x40fe93
mov dword [ebp - 0x1190], 1
jmp 0x40fe09
mov eax, dword [ebp - 0x119c]
push eax
call fcn.0041b1b0
add esp, 4
cmp dword [ebp - 0x1190], 0xffffffff
jne 0x40fee5
mov eax, dword [ebp + 0x1c]
push eax
push 0
push 0
push 0xfb07
push 0xfb07
mov ecx, dword [ebp - 0x1c]
call fcn.00410240
mov eax, dword [ebp - 0x119c]
push eax
call fcn.0041b1b0
add esp, 4
xor eax, eax
jmp 0x41007c
push 1
lea eax, [ebp - 0x994]
push eax
lea ecx, [ebp - 0x124]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00410150
push 0xff
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.00418870
add esp, 0xc
push str.Character
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
mov eax, dword [ebp + 0x14]
movsx ecx, byte [eax]
mov esi, esp
push ecx
push str.AscII_d
lea edx, [ebp - 0x1a8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp esi, esp
call fcn.00418a80
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041acc0
add esp, 8
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x16c]
push ecx
call fcn.0041acb0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
push 0x46e9b4
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0041acc0
add esp, 8
push str..txt
lea eax, [ebp - 0x124]
push eax
call fcn.0041acc0
add esp, 8
mov esi, esp
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.00418a80
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str.Character__s__deleted__Account__s_
push 0x4884a0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp esi, esp
call fcn.00418a80
push 0x4884a0
call fcn.00413cf0
add esp, 4
cmp dword [ebp - 0x119c], 0
je 0x41004e
mov eax, dword [ebp - 0x119c]
push eax
call fcn.0041b1b0
add esp, 4
mov eax, 1
jmp 0x41007c
jmp 0x41006a
mov dword [ebp - 4], 0xffffffff
jmp 0x41007a
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x4100b8]
call fcn.00418a20
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419b10
add esp, 0x12d0
cmp ebp, esp
call fcn.00418a80
mov esp, ebp
pop ebp
ret 0x18