Function at 0x4089e0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45f698]
push ebx
push esi
push edi
push 0x208
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x270], ecx
call fcn.0041f350
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x45e8f0
push str._sCredentialsNew.ini
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00401640
add esp, 0x14
lea eax, [ebp - 0x210]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408f26
push 0x34
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0041f350
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x408f1b
cmp dword [ebp - 0x228], 1
jne 0x408f1b
mov esi, dword [ebp - 0x22c]
test esi, esi
je 0x408f1b
push esi
call fcn.0041b33f
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.0041f350
add esp, 0xc
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x214]
push 0
push eax
push dword [ebp - 0x22c]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408ee3
mov eax, dword ds:[ebp - 0x22c]
cmp dword [ebp - 0x214], eax
jne 0x408ee3
mov edx, dword [ebp - 0x25c]
xorps xmm0, xmm0
mov ecx, edx
movlpd qword [ebp - 0x258], xmm0
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x268], eax
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b30
sub ecx, esi
mov esi, dword [0x45f634]
je 0x408bce
lea eax, [ecx + 1]
mov dword [ebp - 0x25c], edx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x258]
push eax
push 0x41
push 0
push 0
lea eax, [ebp - 0x260]
push eax
push 0
lea eax, [ebp - 0x268]
mov ecx, esi
push eax
call dword [0x442244]
call esi
nop dword [eax]
test eax, eax
jne 0x408bdf
push ebx
lfence
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x22c]
push 0
push edi
call fcn.00440bb0
add esp, 0xc
push edi
call fcn.0041b33a
add esp, 4
lea eax, [ebp - 0x250]
push 0x34
push 0
push eax
call fcn.00440bb0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x258]
push eax
push 0x41
push 0
push 0
push 0
jmp 0x408b69
push 0
push 0x80
push 5
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
nop
cmp eax, 0xffffffff
jne 0x408c7b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x22c]
push 0
push edi
call fcn.00440bb0
add esp, 0xc
push dword [ebp - 0x258]
push 0
push dword [ebp - 0x254]
call fcn.00440bb0
add esp, 0xc
push edi
call fcn.0041b33a
add esp, 4
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x34
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.00440bb0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
push dword [ebp - 0x258]
push dword [ebp - 0x254]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408d29
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x22c]
push 0
push edi
call fcn.00440bb0
add esp, 0xc
push dword [ebp - 0x258]
push 0
push dword [ebp - 0x254]
call fcn.00440bb0
add esp, 0xc
push edi
call fcn.0041b33a
add esp, 4
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x258]
push 0
push dword [ebp - 0x254]
call fcn.00440bb0
add esp, 0xc
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x20a
call fcn.0041b556
add esp, 4
mov esi, eax
mov dword [ebp - 0x25c], esi
push 0x208
push 0
push esi
call fcn.0041f350
add esp, 0xc
mov byte [esi + 0x208], 0
lea eax, [ebp - 0x210]
push eax
push 0x104
push esi
call fcn.00429d55
add esp, 0xc
test eax, eax
jne 0x408d97
mov byte [esi + 0x208], 1
push 0
push ecx
mov ecx, esi
call fcn.004083e0
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x408e4b
push eax
push 0x101
push dword [ebp - 0x270]
lfence
call fcn.00429fe1
add esp, 0xc
push dword [ebp - 0x26c]
push ecx
mov ecx, esi
call fcn.004083e0
mov dword ds:[ebp - 0x25c], eax
test eax, eax
je 0x408e28
mov ecx, dword [ebp - 0x270]
push eax
add ecx, 0x101
push 0x101
push ecx
lfence
call fcn.00429fe1
add esp, 0xc
push 0x100
push 0
push dword [ebp - 0x25c]
call fcn.00440bb0
add esp, 0xc
push dword [ebp - 0x25c]
call fcn.0041b33a
add esp, 4
push 0x100
push 0
push dword [ebp - 0x26c]
call fcn.00440bb0
add esp, 0xc
push dword [ebp - 0x26c]
call fcn.0041b33a
add esp, 4
push 0x20a
push esi
mov byte [esi + 0x208], 0
call fcn.0041b836
add esp, 8
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push dword [ebp - 0x22c]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x22c]
push 0
push edi
call fcn.00440bb0
add esp, 0xc
lea eax, [ebp - 0x250]
push 0x34
push 0
push eax
call fcn.00440bb0
add esp, 0xc
push edi
call fcn.0041b33a
add esp, 4
test esi, esi
je 0x408c5b
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x22c]
push 0
push edi
call fcn.00440bb0
add esp, 0xc
push edi
call fcn.0041b33a
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b32c
mov esp, ebp
pop ebp
ret