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

Disassembly:
sub esp, 0x3c
mov eax, dword [0x422978]
push esi
mov esi, ecx
mov ecx, 0x422978
call dword [eax + 0xc]
lea ecx, [esp + 8]
add eax, 0x10
push ecx
mov ecx, esi
mov dword [esp + 0xc], eax
call fcn.0040a780
test eax, eax
jne 0x40bb8f
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 0x40bb88
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 [0x422978]
push ebx
push ebp
push edi
mov ecx, 0x422978
call dword [eax + 0xc]
mov ebx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x14]
add eax, 0x10
push str._eo__s___silence
push ecx
mov dword [esp + 0x1c], eax
call fcn.00404490
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.00409860
test eax, eax
je 0x40c01d
cmp dword [esp + 0x2c], ebp
jne 0x40c01d
mov eax, dword [0x422978]
mov ecx, 0x422978
call dword [eax + 0xc]
push ebx
lea ecx, [esp + 0x20]
add eax, 0x10
push str._sAuto.ini
push ecx
mov dword [esp + 0x28], eax
call fcn.00404490
add esp, 0xc
push str.Setup.exe
lea ecx, [esp + 0x1c]
call fcn.004047c0
mov edx, dword [0x422978]
mov ecx, 0x422978
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.0040a090
push str.label.dat
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0040a300
mov edi, dword [eax]
add esp, 0xc
push str.Rising.info
push 0x41d38c
lea edx, [esi + 0x84]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0040a300
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0040a300
mov eax, dword [eax]
push ebp
push 1
push ebp
push edi
push eax
call fcn.0040dcf0
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 0x40bcd7
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 0x40bcf5
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 0x40bd13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40bd9f
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 0x40bd39
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 0x40bd57
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 0x40bd75
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 0x40bd93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
jmp 0x40c03a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x38], eax
call fcn.004036e0
add esp, 4
add eax, 0x10
push 0x41d38c
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
call fcn.00404640
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00403dd0
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], ebp
jl 0x40be1c
push 0x41da78
push edi
call fcn.00412fb2
add esp, 8
cmp eax, ebp
je 0x40bdfd
sub eax, edi
mov dword [esp + 0x3c], eax
jns 0x40be2e
cmp dword [edi - 0xc], ebp
jl 0x40be1c
push str._SILENCE
push edi
call fcn.00412fb2
add esp, 8
cmp eax, ebp
je 0x40be1c
sub eax, edi
mov dword [esp + 0x3c], eax
jns 0x40be2e
push 0x41da68
lea ecx, [esp + 0x14]
call fcn.00404640
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 0x40be63
test al, 0x10
jne 0x40be63
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.00409860
cmp dword [esp + 0x24], ebp
je 0x40be75
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.00409970
mov ecx, esi
call fcn.0040bae0
test eax, eax
je 0x40bee6
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.00409d20
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.0040d400
jmp 0x40bf5b
cmp dword [esp + 0x30], 0x8000000a
jne 0x40bf67
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.00409d20
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.0040d400
mov dword [esi + 0x74], 1
lea ecx, [esp + 0x64]
add esp, 0x24
call fcn.004099c0
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bf81
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 0x40bf9f
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 0x40bfbd
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 0x40bfdb
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 0x40bff5
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 0x40c010
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 0x40c037
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 0x40c051
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