Function at 0x4090a0
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x415b8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov ecx, dword [0x41d368]
mov edx, dword [0x41d36c]
mov eax, dword [str.AESINS4_40_0FKH]
push ebx
mov dword [esp + 0xc], ecx
mov cl, byte [0x41d374]
push ebp
mov dword [esp + 0x14], edx
push esi
mov dword [esp + 0x10], eax
mov eax, dword [0x41d370]
lea edx, [esp + 0x10]
push edi
mov byte [esp + 0x24], cl
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], eax
call fcn.00406100
mov eax, dword [0x420638]
lea ecx, [esp + 0x4c]
add eax, 0x734
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x264], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x4b]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x409142
lea eax, [esp + 0x4c]
push 0x41d1c8
push eax
call edi
lea ecx, [esp + 0x4c]
push str.DWRCSP.cfg
push ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
push ebx
push 1
lea edx, [esp + 0x60]
push 0x80000000
push edx
call ebp
mov esi, eax
cmp esi, ebx
je 0x40919f
cmp esi, 0xffffffff
je 0x40919f
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x158]
push 0x104
push ecx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x4091ce
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00406170
xor eax, eax
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x150]
push 0x104
push eax
lea ecx, [esp + 0x30]
call fcn.004062a0
test eax, eax
je 0x409216
mov edx, dword [0x420638]
lea ecx, [esp + 0x150]
add edx, 0x52c
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x420638]
lea ecx, [esp + 0x4c]
add eax, 0x734
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40924a
lea eax, [esp + 0x4c]
push 0x41d1c8
push eax
call edi
lea ecx, [esp + 0x4c]
push str.DWRCSU.cfg
push ecx
call edi
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x60]
push 0x80000000
push edx
call ebp
mov esi, eax
test esi, esi
je 0x409316
or edi, 0xffffffff
cmp esi, edi
je 0x409319
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x158]
push 0x104
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x4092ba
call ebx
mov dword [esp + 0x25c], edi
jmp 0x4091aa
call ebx
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x150]
push 0x104
push eax
lea ecx, [esp + 0x30]
call fcn.004062a0
test eax, eax
je 0x4092fc
mov edx, dword [0x420638]
lea ecx, [esp + 0x150]
add edx, 0x428
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x28]
mov dword [esp + 0x25c], edi
call fcn.00406170
mov eax, 1
jmp 0x4091b5
or edi, 0xffffffff
mov dword [esp + 0x25c], edi
jmp 0x4091aa