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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x4259a0]
push esi
mov esi, ecx
mov ecx, 0x4259a0
call dword [eax + 0xc]
lea ecx, [esp + 8]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.0040c490
test eax, eax
jne 0x40d89f
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 0x40d898
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 [0x4259a0]
push ebx
push ebp
push edi
mov ecx, 0x4259a0
call dword [eax + 0xc]
mov ebx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x14]
add eax, 0x10
push 0x41fb88
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.0040b490
test eax, eax
je 0x40dd2d
cmp dword [esp + 0x2c], ebp
jne 0x40dd2d
mov eax, dword [0x4259a0]
mov ecx, 0x4259a0
call dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x20]
add eax, 0x10
push 0x41fb7c
push ecx
mov dword [esp + 0x28], eax
call fcn.00404580
add esp, 0xc
push 0x41f9cc
lea ecx, [esp + 0x1c]
call fcn.004048b0
mov edx, dword [0x4259a0]
mov ecx, 0x4259a0
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.0040bda0
push 0x41fb70
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0040c010
mov edi, dword [eax]
add esp, 0xc
push 0x41fb64
push 0x41f434
lea edx, [esi + 0x84]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0040c010
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0040c010
mov eax, dword [eax]
push ebp
push 1
push ebp
push edi
push eax
call fcn.0040fa70
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 0x40d9e7
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 0x40da05
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 0x40da23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40daaf
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 0x40da49
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 0x40da67
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 0x40da85
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 0x40daa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40dd4a
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 0x41f434
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 0x40db2c
push 0x41fb60
push edi
call fcn.00414d32
add esp, 8
cmp eax, ebp
je 0x40db0d
sub eax, edi
mov dword [esp + 0x3c], eax
jns 0x40db3e
cmp dword [edi - 0xc], ebp
jl 0x40db2c
push 0x41fb54
push edi
call fcn.00414d32
add esp, 8
cmp eax, ebp
je 0x40db2c
sub eax, edi
mov dword [esp + 0x3c], eax
jns 0x40db3e
push 0x41fb50
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 0x40db73
test al, 0x10
jne 0x40db73
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.0040b490
cmp dword [esp + 0x24], ebp
je 0x40db85
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.0040b5a0
mov ecx, esi
call fcn.0040d7f0
test eax, eax
je 0x40dbf6
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.0040b980
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.0040f180
jmp 0x40dc6b
cmp dword [esp + 0x30], 0x8000000a
jne 0x40dc77
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.0040b980
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.0040f180
mov dword [esi + 0x74], 1
lea ecx, [esp + 0x64]
add esp, 0x24
call fcn.0040b5f0
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dc91
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 0x40dcaf
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 0x40dccd
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 0x40dceb
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 0x40dd05
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 0x40dd20
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 0x40dd47
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 0x40dd61
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