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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x61de38]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x14], ebx
cmp dword [ebx + 0x12428], 0
je 0x590cfa
cmp dword [ebx + 0x12c5c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x590c36
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, ecx
push 0
push 0
push 0x147
push dword [eax + 0x12bf8]
mov byte [esp + 0x30], 0
mov byte [esp + 0x50], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call esi
push 0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
push 0
push 0x147
push dword [eax + 0x12b58]
call esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x20]
push 0x20
push eax
lea ecx, [esi + 0x12a38]
call fcn.00423b28
push 0x20
lea eax, [esp + 0x44]
push eax
lea ecx, [esi + 0x12ab8]
call fcn.00423b28
push 1
mov ecx, esi
call fcn.00421092
cmp byte [esp + 0x20], 0
mov eax, dword [esi + 0x12cf0]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x12c60]
mov dword [esp + 0x68], eax
je 0x590cfa
push str.account.db
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push str.account.db
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x590b6d
call ebx
jmp 0x590c36
test esi, esi
je 0x590c36
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x590b96
call ebx
push esi
jmp 0x590c34
cmp dword [esp + 0x10], 0
jne 0x590ba3
push esi
jmp 0x590c34
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x590bc1
call ebx
push esi
jmp 0x590c34
cmp dword [esp + 0x10], 0
jne 0x590bcb
push esi
jmp 0x590c34
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x590be9
call ebx
push esi
jmp 0x590c34
cmp dword [esp + 0x10], 0
jne 0x590bf3
push esi
jmp 0x590c34
push 4
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x20]
call fcn.00412980
test eax, eax
je 0x590c2b
push 4
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x20]
call fcn.00412980
test eax, eax
je 0x590c2b
push 4
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x20]
call fcn.00412980
mov eax, dword [esp + 0x18]
test eax, eax
je 0x590c36
push eax
call edi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x12c58], 0
je 0x590cfa
push 0x20
lea eax, [esp + 0x24]
mov byte [esp + 0x24], 0
push eax
lea ecx, [esi + 0x125b8]
mov byte [esp + 0x48], 0
call fcn.00423b28
push 0x20
lea eax, [esp + 0x44]
push eax
lea ecx, [esi + 0x12638]
call fcn.00423b28
push str.007.db
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push str.007.db
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x590cb8
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x590cfa
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x590cf5
cmp dword [esp + 0x10], 0
je 0x590cf7
push 0
lea eax, [esp + 0x14]
push eax
push 0x20
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x590cf7
call ebx
push esi
call edi
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055c6fa
mov esp, ebp
pop ebp
ret