Function at 0x40dca0
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592155
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5fcffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov eax, dword [edi + 0x22864]
mov edx, 0x5d8d04
mov ecx, eax
nop dword [eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x40dd06
test si, si
je 0x40dd02
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40dd06
add ecx, 4
add edx, 4
test si, si
jne 0x40dce0
xor ecx, ecx
jmp 0x40dd0b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x40e27a
mov edx, 0x5d9118
mov ecx, eax
nop word [eax + eax]
mov si, word [ecx]
cmp si, word [edx]
jne 0x40dd46
test si, si
je 0x40dd42
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40dd46
add ecx, 4
add edx, 4
test si, si
jne 0x40dd20
xor ecx, ecx
jmp 0x40dd4b
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x40e160
lea eax, [edi + 0x354]
push 0x5daa48
push eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x58]
push eax
call fcn.00422a00
lea ecx, [edi + 0x2d8]
mov dword [ebp - 4], 0
push ecx
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], ecx
push eax
call fcn.00420cc0
add esp, 0x18
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x60]
cmp eax, 1
sete byte [ebp - 0x45]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ddb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ddd6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x45], 0
je 0x40ddec
mov ecx, edi
call fcn.0040e2d0
cmp eax, 1
je 0x40e27a
mov ecx, edi
call fcn.0040e550
push ecx
mov ecx, esp
cmp eax, 1
jne 0x40deba
lea eax, [edi + 0x22834]
push eax
call fcn.00422ec0
call fcn.004093c0
mov eax, dword [edi + 0x22880]
mov ecx, 0x5d9118
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40de46
test dx, dx
je 0x40de42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40de46
add eax, 4
add ecx, 4
test dx, dx
jne 0x40de20
xor eax, eax
jmp 0x40de4b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40e262
push 1
push ecx
lea eax, [edi + 0x22858]
mov dword [ebp - 0x50], esp
mov ecx, esp
push eax
call fcn.00422ec0
push ecx
mov esi, esp
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], esi
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x40e297
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x5d95e8
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00402a50
test al, al
jne 0x40deb1
push 2
push 0x5d95e8
mov ecx, esi
call fcn.00403260
mov byte [ebp - 4], 1
jmp 0x40e254
lea eax, [edi + 0x22838]
push eax
call fcn.00422ec0
call fcn.004093c0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x44]
movq qword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x44], xmm0
call fcn.00444d69
push 0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x44]
push dword [edi + 0x354]
call fcn.00444e73
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
test eax, eax
jne 0x40df50
nop dword [eax]
mov eax, dword [ebp - 0x54]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x3e8
cmp eax, 1
jne 0x40df43
call edi
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x44]
push 0
push dword [eax]
call fcn.00444e73
cmp eax, 1
je 0x40e048
jmp 0x40df45
call edi
inc esi
cmp esi, 3
jl 0x40df10
jmp 0x40e048
push 0x5daa48
push dword [ebp - 0x54]
lea eax, [ebp - 0x60]
push eax
call fcn.00422a00
push dword [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00420cc0
add esp, 0x18
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x58]
cmp eax, 1
sete byte [ebp - 0x45]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40df9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dfbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x3e8
call edi
cmp byte [ebp - 0x45], 0
je 0x40e03e
push 0x5daa48
push dword [ebp - 0x54]
lea eax, [ebp - 0x64]
push eax
call fcn.00422a00
push dword [ebp - 0x5c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00420cc0
add esp, 0x18
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x50]
test eax, eax
sete byte [ebp - 0x45]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e019
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e038
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x45], 0
jne 0x40e048
inc esi
cmp esi, 3
jl 0x40df50
push 0x3e8
call edi
mov esi, dword [ebp - 0x4c]
push ecx
add esi, 0x2dc
mov ecx, esp
push esi
mov dword [ebp - 0x58], esi
call fcn.00422ec0
lea eax, [ebp - 0x4c]
push eax
call fcn.00405440
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00422d00
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x4c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e09a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
movq qword [ebp - 0x18], xmm0
call fcn.004454d0
push 0x5daa48
push dword [ebp - 0x54]
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 7
push eax
call fcn.00422a00
push dword [ebp - 0x5c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00420cc0
add esp, 0x18
push 0
push 0x5001
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.004458c9
mov byte [ebp - 4], 8
mov ecx, esi
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40e10d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40e129
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x50], 0
je 0x40e13c
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.00445c86
lea ecx, [ebp - 0x28]
call fcn.004456f0
push 0x3e8
call edi
lea ecx, [ebp - 0x28]
call fcn.00445503
lea ecx, [ebp - 0x44]
call fcn.00444d9b
jmp 0x40e27a
mov ecx, 0x5d9120
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e18b
test dx, dx
je 0x40e187
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e18b
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e165
xor eax, eax
jmp 0x40e190
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40e27a
mov ecx, edi
call fcn.0040e550
push ecx
mov ecx, esp
cmp eax, 1
jne 0x40e269
lea eax, [edi + 0x22834]
push eax
call fcn.00422ec0
call fcn.004093c0
mov eax, dword [edi + 0x22880]
mov ecx, 0x5d9118
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e1ed
test dx, dx
je 0x40e1e9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e1ed
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e1c7
xor eax, eax
jmp 0x40e1f2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40e262
push 1
push ecx
lea eax, [edi + 0x22858]
mov dword [ebp - 0x50], esp
mov ecx, esp
push eax
call fcn.00422ec0
push ecx
mov esi, esp
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x4c], esi
call fcn.004255be
mov ecx, eax
test ecx, ecx
je 0x40e2a1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x5d95e8
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.00402a50
test al, al
jne 0x40e250
push 2
push 0x5d95e8
mov ecx, esi
call fcn.00403260
mov byte [ebp - 4], 0xa
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00408ab0
mov eax, 1
jmp 0x40e27c
lea eax, [edi + 0x22838]
push eax
call fcn.00422ec0
call fcn.004093c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056eb08
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004033d0
push 0x80004005
call fcn.004033d0
int3