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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x4259c0]
push esi
mov esi, ecx
mov ecx, 0x4259c0
call dword [eax + 0xc]
lea ecx, [esp + 8]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.0040c530
test eax, eax
jne 0x40d93f
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop esi
add esp, 0x3c
ret
mov eax, dword [0x4259c0]
push ebx
push ebp
push edi
mov ecx, 0x4259c0
call dword [eax + 0xc]
mov ebx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x14]
add eax, 0x10
push 0x41fbf0
push ecx
mov dword [esp + 0x1c], eax
call fcn.00404580
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x7c]
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push 1
push edi
xor ebp, ebp
push eax
mov ecx, esi
mov dword [esp + 0x3c], ebp
call fcn.0040b400
test eax, eax
je 0x40ddcd
cmp dword [esp + 0x2c], ebp
jne 0x40ddcd
mov eax, dword [0x4259c0]
mov ecx, 0x4259c0
call dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x20]
add eax, 0x10
push 0x41fbe4
push ecx
mov dword [esp + 0x28], eax
call fcn.00404580
add esp, 0xc
push 0x41f9bc
lea ecx, [esp + 0x1c]
call fcn.004048b0
mov edx, dword [0x4259c0]
mov ecx, 0x4259c0
mov dword [esp + 0x24], ebp
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.0040bce0
push 0x41fbd8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0040bf50
mov edi, dword [eax]
add esp, 0xc
push 0x41fbcc
push 0x41f424
lea edx, [esi + 0x84]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0040bf50
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0040bf50
mov eax, dword [eax]
push ebp
push 1
push ebp
push edi
push eax
call fcn.0040fb20
mov ebx, eax
mov eax, dword [esp + 0x40]
add esp, 0x20
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40da87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40daa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dac3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40db4f
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dae9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db07
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40db43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40ddea
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x38], eax
call fcn.00403780
add esp, 4
add eax, 0x10
push 0x41f424
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.00404730
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00403e90
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], ebp
jl 0x40dbcc
push 0x41fbc8
push edi
call fcn.00414de2
add esp, 8
cmp eax, ebp
je 0x40dbad
sub eax, edi
mov dword [esp + 0x3c], eax
jns 0x40dbde
cmp dword [edi - 0xc], ebp
jl 0x40dbcc
push 0x41fbbc
push edi
call fcn.00414de2
add esp, 8
cmp eax, ebp
je 0x40dbcc
sub eax, edi
mov dword [esp + 0x3c], eax
jns 0x40dbde
push 0x41fbb8
lea ecx, [esp + 0x14]
call fcn.00404730
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [esp + 0x30], ebp
je 0x40dc13
test al, 0x10
jne 0x40dc13
mov edx, dword [esi + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
push ecx
push edi
push ebx
mov ecx, esi
call fcn.0040b400
cmp dword [esp + 0x24], ebp
je 0x40dc25
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.0040b510
mov ecx, esi
call fcn.0040d890
test eax, eax
je 0x40dc96
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x40], 0x2711
call fcn.0040b8c0
lea ecx, [esi + 0xa4]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esi + 0xb8]
push eax
lea ecx, [esi + 0xb4]
push ecx
lea edx, [esi + 0xb0]
push edx
lea eax, [esi + 0xac]
push eax
mov eax, dword [esi + 0x8c]
lea ecx, [esi + 0xa8]
push ecx
lea edx, [esi + 0x9c]
push edx
push eax
call fcn.0040f230
jmp 0x40dd0b
cmp dword [esp + 0x30], 0x8000000a
jne 0x40dd17
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x40], 0x2716
call fcn.0040b8c0
lea edx, [esi + 0xa4]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esi + 0xb8]
push ecx
lea edx, [esi + 0xb4]
push edx
lea eax, [esi + 0xb0]
push eax
lea ecx, [esi + 0xac]
push ecx
mov ecx, dword [esi + 0x8c]
lea edx, [esi + 0xa8]
push edx
lea eax, [esi + 0x9c]
push eax
push ecx
call fcn.0040f230
mov dword [esi + 0x74], 1
lea ecx, [esp + 0x64]
add esp, 0x24
call fcn.0040b560
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dd31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dda5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ddc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x3c
ret
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dde7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x3c
ret