Function at 0x402080
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44adb5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
push 0
push 0xa1
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea eax, [esp + 0x20]
push eax
call fcn.0041df70
mov esi, eax
mov ebp, dword [esp + 0x13c]
mov dword [esp + 0x134], 0
mov eax, dword [ebp + 4]
test eax, eax
je 0x4020e8
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push 0x450a34
add esi, 4
push esi
call fcn.0040ada0
add esp, 8
push eax
call fcn.00405f70
lea ebx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.0041e270
mov edi, dword [ebp + 4]
mov eax, dword [ebp + 8]
cmp edi, eax
je 0x40235c
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [edi + 4]
jmp 0x402130
lea ecx, [esp + 0x18]
push ecx
mov ecx, 1
mov edx, 2
mov dword [esp + 0x18], 0
call fcn.00406600
mov dword [esp + 0x134], 1
call ebp
mov dword [esp + 0x9c], eax
push 0xa6
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x140], 2
call fcn.0041dfe0
push edi
lea eax, [esp + 0x1c]
push 0x450ad4
push eax
mov dword [esp + 0x140], 3
call fcn.0040ada0
add esp, 8
push eax
call fcn.0040b020
add esp, 8
lea ebx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.0041e270
push 0
push 4
call fcn.00401d10
mov eax, dword [esi + 0x14]
mov ebx, 0x10
add esp, 8
cmp eax, ebx
jb 0x4021d3
mov eax, dword [esi]
jmp 0x4021d5
mov eax, esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4022ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], ebx
jb 0x402207
mov eax, dword [esi]
jmp 0x402209
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402234
test al, 1
je 0x402234
cmp dword [esi + 0x14], ebx
jb 0x402222
mov eax, dword [esi]
jmp 0x402224
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x402257
cmp dword [esi + 0x14], ebx
jb 0x40223d
mov eax, dword [esi]
jmp 0x40223f
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
neg eax
sbb al, al
inc al
mov byte [esp + 0x13], al
jne 0x402344
push 0
push 0xab
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea edx, [esp + 0x20]
push edx
call fcn.0041df70
push edi
add eax, 4
push 0x450a24
push eax
mov dword [esp + 0x140], 4
call fcn.0040ada0
add esp, 8
push eax
call fcn.0040b020
add esp, 8
lea ebx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.0041e270
xor al, al
jmp 0x40235e
lea ecx, [esp + 0xa4]
push ecx
mov ecx, 1
mov edx, 2
mov dword [esp + 0xa4], 0
call fcn.00406600
mov dword [esp + 0x134], 5
call ebp
mov dword [esp + 0x128], eax
push 0xaf
push str.SourceCodeDevNineWorldsCodeDev_toolslauncher_sourceGenPatchRuntimeconsole_entry.cpp
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x140], 6
call fcn.0041dfe0
push edi
lea eax, [esp + 0xa8]
push 0x450a14
push eax
mov dword [esp + 0x140], 7
call fcn.0040ada0
add esp, 8
push eax
call fcn.0040b020
add esp, 8
lea ebx, [esp + 0xa0]
mov dword [esp + 0x134], 0xffffffff
call fcn.0041e270
mov ecx, dword [esp + 0x13c]
mov eax, dword [ecx + 8]
add edi, 0x1c
add esi, 0x1c
cmp edi, eax
jne 0x402130
mov al, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret