Function at 0x40d7d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Read file via mapping
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x44d674
push eax
mov eax, 0x1368
mov dword fs:[0], esp
call fcn.004239e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
call esi
push eax
call fcn.00405970
add esp, 4
push 1
call esi
push eax
call fcn.00435800
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2fc]
add esp, 8
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x541]
mov byte [esp + 0x540], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x43d]
mov byte [esp + 0x43c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x745]
mov byte [esp + 0x744], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x540]
push 0x104
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x744]
push 0
push edx
push 0
lea eax, [esp + 0x54c]
push 0
push eax
call fcn.00423b43
add esp, 0x14
call fcn.0044968d
mov eax, dword [eax + 4]
lea ecx, [esp + 0x43c]
add eax, 0xc0
push eax
push str.Map__s
push ecx
call fcn.00422d0e
add esp, 0xc
lea edx, [esp + 0x43c]
mov ecx, 0xab
xor eax, eax
lea edi, [esp + 0x48]
push edx
push 1
push 4
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebp, eax
test ebp, ebp
je 0x40dd3f
cmp ebp, 0xffffffff
je 0x40dd3f
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x40d93b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x4c]
push 0
push 0
push 0x843
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
jmp 0x40dd3f
mov ecx, 0xab
mov esi, eax
lea edi, [esp + 0x48]
push ebp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ecx, dword [esp + 0x4c]
push 0
push 0
push 0x843
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [esp + 0x48]
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40d989
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x60]
push eax
call esi
cmp eax, 0xffffffff
je 0x40d9ab
lea ecx, [esp + 0x60]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x2ec]
test eax, eax
je 0x40d9e6
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea eax, [esp + 0x60]
push 0
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, esi
jmp 0x40dd41
push 0x86c
call fcn.0043b7dd
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov dword [esp + 0x1380], 0
je 0x40da11
mov ecx, eax
call fcn.004143f0
mov ebp, eax
jmp 0x40da13
xor ebp, ebp
lea ecx, [esp + 0x60]
mov dword [esp + 0x1380], 0xffffffff
push ecx
mov ecx, ebp
call fcn.00414620
test eax, eax
jne 0x40da3d
lea edx, [esp + 0x164]
push edx
call esi
jmp 0x40dd1b
mov ecx, ebp
call fcn.004150b0
mov ebx, dword [ebp + 0x418]
mov dword [esp + 0x2c], eax
sub eax, ebx
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xc]
add eax, 0x400
push eax
call fcn.0043b7dd
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x40daa3
test ebp, ebp
je 0x40da7c
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
lea eax, [esp + 0x164]
push eax
call esi
test al, 0x10
je 0x40dd5a
lea ecx, [esp + 0x164]
push ecx
call fcn.0040f8e0
add esp, 4
jmp 0x40dd3f
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x40db37
mov eax, dword [ebp + 0x438]
xor edi, edi
test eax, eax
jle 0x40db37
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor esi, esi
mov eax, dword [ebp + 0x434]
lea ecx, [esp + 0x268]
add eax, esi
push eax
push ecx
call ebx
test eax, eax
jne 0x40db25
mov edx, dword [ebp + 0x434]
mov eax, dword [edx + esi + 0x48]
lea ecx, [edx + esi + 0x48]
cmp eax, 0xffffffff
je 0x40dafb
test eax, eax
jbe 0x40daf5
dec eax
mov dword [ecx], eax
jmp 0x40dafb
mov dword [ecx], 0
mov eax, dword [ebp + 0x434]
lea ecx, [eax + esi + 0x4c]
mov eax, dword [eax + esi + 0x4c]
cmp eax, 0xffffffff
je 0x40db25
mov edx, dword [esp + 0x2f0]
cmp eax, edx
jbe 0x40db1f
sub eax, edx
mov dword [ecx], eax
jmp 0x40db25
mov dword [ecx], 0
mov eax, dword [ebp + 0x438]
inc edi
add esi, 0x58
cmp edi, eax
jl 0x40dac2
mov ebx, dword [esp + 0x10]
mov eax, dword [ebp + 0x28]
cmp eax, 0xffffffff
je 0x40db50
test eax, eax
jbe 0x40db49
dec eax
mov dword [ebp + 0x28], eax
jmp 0x40db50
mov dword [ebp + 0x28], 0
mov eax, dword [ebp + 0x2c]
cmp eax, 0xffffffff
je 0x40db71
mov ecx, dword [esp + 0x2f0]
cmp eax, ecx
jbe 0x40db6a
sub eax, ecx
mov dword [ebp + 0x2c], eax
jmp 0x40db71
mov dword [ebp + 0x2c], 0
mov eax, dword [ebp + 0x430]
lea ecx, [eax + eax*4]
lea eax, [eax + ecx*2]
shl eax, 2
test eax, eax
jle 0x40db9c
mov esi, dword [ebp + 0x42c]
mov ecx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x438]
lea ecx, [edx + edx*4]
lea edx, [edx + ecx*2]
shl edx, 3
test edx, edx
jle 0x40dbc8
mov esi, dword [ebp + 0x434]
mov ecx, edx
lea edi, [eax + ebx]
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x440]
lea ebx, [ecx + ecx*4]
shl ebx, 4
test ebx, ebx
mov dword [esp + 0x1c], ebx
jle 0x40dbfb
mov esi, dword [ebp + 0x43c]
mov ecx, ebx
mov ebx, dword [esp + 0x10]
lea edi, [edx + eax]
add edi, ebx
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, edx
lea esi, [ebp + 0x10]
add eax, ebx
mov ecx, 0x107
mov dword [esp + 0x40], eax
lea edi, [esp + 0x844]
lea ebx, [eax + 0x41c]
mov eax, ebx
mov dword [esp + 0x24], ebx
and eax, reloc.OLEAUT32.dll_VariantInit
rep movsd dword es:[edi], dword [esi]
jns 0x40dc2c
dec eax
or eax, 0xfffffff8
inc eax
je 0x40dc37
mov edx, 8
sub edx, eax
add ebx, edx
test ebp, ebp
je 0x40dc44
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], 0
push 0x64
call edi
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [esp + 0x74]
push 0xc0000000
push ecx
call esi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40dc80
test ebp, ebp
jne 0x40dc97
mov eax, dword [esp + 0x1c]
cmp eax, 9
je 0x40dd0d
inc eax
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jl 0x40dc58
cmp ebp, 0xffffffff
je 0x40dd3f
test ebp, ebp
je 0x40dd3f
mov eax, dword [esp + 0x2e8]
mov edx, dword [esp + 0xc4c]
test eax, eax
mov dword [esp + 0x28], edx
je 0x40df9e
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x30]
push 0
push ecx
push eax
push ebp
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40dd64
mov edx, dword [esp + 0x10]
push edx
call fcn.0043b806
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x40da86
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40dd31
lea eax, [esp + 0x164]
push eax
call fcn.0040f8e0
add esp, 4
jmp 0x40dd3f
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov ecx, dword [esp + 0x1378]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1374
ret
lea edx, [esp + 0x164]
push edx
jmp 0x40dd39
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x339]
mov byte [esp + 0x338], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x645]
mov byte [esp + 0x644], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push 0
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x650]
push 0
lea ecx, [esp + 0x348]
push eax
lea edx, [esp + 0x178]
push ecx
push edx
call fcn.00410e40
add esp, 0x1c
test eax, eax
jne 0x40de20
mov eax, dword [esp + 0x10]
push eax
call fcn.0043b806
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x338]
push ecx
call esi
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40de11
lea eax, [esp + 0x164]
push eax
call fcn.0040f8e0
add esp, 4
jmp 0x40dd3f
lea ecx, [esp + 0x164]
push ecx
call esi
jmp 0x40dd3f
lea edx, [esp + 0x28]
lea eax, [esp + 0x338]
push edx
lea ecx, [esp + 0x54]
push eax
push ecx
push ebp
call fcn.0040d560
add esp, 0x10
test eax, eax
jne 0x40de88
mov edx, dword [esp + 0x10]
push edx
call fcn.0043b806
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x338]
push eax
call esi
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40dfec
lea eax, [esp + 0x164]
push eax
call esi
jmp 0x40dd3f
lea ecx, [esp + 0x338]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc4c], ecx
mov ecx, 0x107
lea esi, [esp + 0x844]
lea edi, [eax + edx]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc60]
call fcn.00412df0
mov eax, dword [esp + 0x10]
push 0
push 0x10
push str.ASPOIKDJDMCKJIOP
push ebx
push eax
push eax
lea ecx, [esp + 0xc78]
mov dword [esp + 0x1398], 1
call fcn.00412e30
lea edi, [ebx + ebx]
push edi
call fcn.0043b7dd
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x18]
call fcn.00412b20
push 0x78
push ebx
mov ebx, dword [esp + 0x18]
push esi
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1390], 2
call fcn.00412b60
push ebx
mov edi, eax
call fcn.0043b806
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push 0
push eax
push edi
push esi
push ebp
call ebx
mov eax, dword [esp + 0x14]
push esi
cmp eax, edi
je 0x40e018
call fcn.0043b806
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40e00e
lea edx, [esp + 0x164]
push edx
call fcn.0040f8e0
add esp, 4
jmp 0x40e098
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x20]
push 0
push edx
push eax
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40de96
mov eax, dword [esp + 0x10]
push eax
call fcn.0043b806
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40e001
lea edx, [esp + 0x164]
push edx
call fcn.0040f8e0
add esp, 4
jmp 0x40dd3f
lea eax, [esp + 0x164]
push eax
jmp 0x40dd39
lea eax, [esp + 0x164]
push eax
jmp 0x40e092
call fcn.0043b806
xor ecx, ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
add esp, 4
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x14], ecx
push ecx
push eax
lea ecx, [esp + 0x3c]
push 0xc
push ecx
push ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x48], 0x87321654
call ebx
mov eax, dword [esp + 0x14]
push ebp
cmp eax, 0xc
je 0x40e0c5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40e08a
lea eax, [esp + 0x164]
push eax
call fcn.0040f8e0
add esp, 4
jmp 0x40e098
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1380], 1
call fcn.00412b50
lea ecx, [esp + 0xc60]
mov dword [esp + 0x1380], 0xffffffff
call fcn.00412e20
jmp 0x40dd3f
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x40e0fd
lea eax, [esp + 0x164]
push eax
call fcn.0040f8e0
add esp, 4
jmp 0x40e10b
lea ecx, [esp + 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1380], 1
call fcn.00412b50
lea ecx, [esp + 0xc60]
mov dword [esp + 0x1380], 0xffffffff
call fcn.00412e20
mov eax, 1
jmp 0x40dd41