Function at 0x407ec0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x523e9f
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x56d3f0]
xor eax, esp
mov dword [esp + 0x1b0], eax
push ebx
push esi
push edi
mov eax, dword [0x56d3f0]
xor eax, esp
push eax
lea eax, [esp + 0x1c8]
mov dword fs:[0], eax
lea ecx, [esp + 0x64]
call fcn.0040fa78
xor edi, edi
mov dword [esp + 0x1d0], edi
call fcn.0040c47c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x407f2c
push 0x80004005
call fcn.00401c40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x1d0], 1
call fcn.0040c47c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x407f5e
push 0x80004005
call fcn.00401c40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
lea esi, [esp + 0x3c]
call fcn.00408560
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x1d0], 4
mov eax, dword [0x5779c4]
mov ecx, dword [0x5779c8]
cmp eax, ecx
je 0x407fc3
mov edx, dword [esp + 0x14]
push edx
push ecx
call fcn.0040b6b0
mov ecx, dword [0x5779c8]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov eax, esi
call fcn.0040b980
add esp, 0x10
mov dword [0x5779c8], esi
push 0x54ec14
lea edx, [esp + 0x20]
push 0x577960
push edx
call fcn.0040aaa0
add esp, 0xc
push 0xa
push str.bklist.dat
lea ecx, [esp + 0x24]
mov byte [esp + 0x1d8], 5
call fcn.004012a0
push 0x54ec14
lea eax, [esp + 0x1c]
push 0x577960
push eax
call fcn.0040aaa0
add esp, 0xc
push 0xa
push str.bklist.tmp
lea ecx, [esp + 0x20]
mov byte [esp + 0x1d8], 6
call fcn.004012a0
call fcn.0040c47c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40803b
push 0x80004005
call fcn.00401c40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea esi, [esp + 0x84]
mov dword [esp + 0x7c], vtable.FileEncryption.0
call fcn.00401de0
mov dword [esp + 0x1b0], 0xf
mov dword [esp + 0x1ac], edi
mov byte [esp + 0x19c], 0
mov dword [esp + 0x188], edi
mov dword [esp + 0x194], edi
mov dword [esp + 0x198], edi
mov byte [esp + 0x1d0], 8
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [esp + 0x190], 0x400
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408370
mov edx, dword [0x57796c]
mov esi, dword [edx - 0xc]
cmp esi, edi
jge 0x4080cb
push 0x80070057
call fcn.00401c40
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4080ed
push esi
mov ecx, 0x57796c
call fcn.00401a70
mov edx, dword [0x57796c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push edx
lea edx, [esp + 0x84]
call fcn.00406580
lea ecx, [esp + 0x4c]
call fcn.0040fa78
push edi
mov byte [esp + 0x1d4], 9
mov ecx, dword [esp + 0x1c]
push 0x4000
push ecx
lea ecx, [esp + 0x58]
mov ebx, 1
call fcn.0040f950
test eax, eax
je 0x4082e8
call fcn.0040c47c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40814f
push 0x80004005
call fcn.00401c40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x1d4], 0xa
call fcn.0040feb4
test eax, eax
je 0x408243
lea ecx, [ecx]
mov edx, dword [esp + 0x10]
push edx
call fcn.005007a6
add esp, 4
cmp ebx, eax
je 0x40822d
jge 0x4081d3
lea ecx, [esp + 0x24]
call fcn.0040ac70
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
inc ebx
cmp eax, edi
je 0x40822b
mov ecx, dword [esp + 0x14]
push ecx
push eax
push edi
mov eax, edi
call fcn.0040b720
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
mov esi, eax
call fcn.0040b8e0
add esp, 4
mov dword [esp + 0x28], esi
jmp 0x40822b
mov eax, dword [esp + 0x10]
push 0x2a
push edi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0040d8ed
mov edx, dword [esp + 0x10]
push 0x2a
push 1
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0040d8ed
mov ecx, dword [esp + 0x10]
push 0x2a
push 2
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.0040d8ed
mov eax, dword [esp + 0x10]
push 0x2a
push 3
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.0040d8ed
lea ecx, [esp + 0x3c]
lea edi, [esp + 0x24]
call fcn.0040adf0
xor edi, edi
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x50]
call fcn.0040feb4
test eax, eax
jne 0x408180
lea ecx, [esp + 0x24]
call fcn.0040ac70
lea ecx, [esp + 0x4c]
call fcn.0040fd17
mov eax, dword [0x5779c8]
sub eax, dword [0x5779c4]
sar eax, 4
cmp eax, dword [0x577864]
jae 0x4082be
mov ebx, dword [esp + 0x14]
nop
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp eax, edi
je 0x40829c
push ebx
push eax
push edi
mov eax, edi
call fcn.0040b720
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov esi, eax
call fcn.0040b8e0
add esp, 4
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x24]
call fcn.0040ac70
mov edx, dword [0x5779c8]
sub edx, dword [0x5779c4]
sar edx, 4
cmp edx, dword [0x577864]
jb 0x408270
xor edi, edi
mov byte [esp + 0x1d0], 9
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 0x408352
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x408352
push 0x54ecac
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040aaa0
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1d4], 0xb
call fcn.00401540
mov byte [esp + 0x1d0], 9
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 0x408339
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x14], esp
mov ecx, esp
push edx
call fcn.004013f0
call fcn.004078b0
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1d0], 8
call fcn.0040fd93
jmp 0x4083da
push 0x54ecac
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040aaa0
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1d4], 0xc
call fcn.00401540
mov byte [esp + 0x1d0], 8
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 0x4083c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x38], esp
mov ecx, esp
push edx
call fcn.004013f0
call fcn.004078b0
add esp, 4
cmp dword [esp + 0x1b0], 0x10
mov dword [esp + 0x7c], vtable.FileEncryption.0
jb 0x4083fc
mov eax, dword [esp + 0x19c]
push eax
call fcn.0040c415
add esp, 4
lea ecx, [esp + 0x84]
mov dword [esp + 0x1b0], 0xf
mov dword [esp + 0x1ac], edi
mov byte [esp + 0x19c], 0
call fcn.00401d40
mov byte [esp + 0x1d0], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40844a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1d0], 5
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 0x408472
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1d0], 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 0x40849a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], edi
je 0x4084c0
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
push ecx
mov eax, esi
call fcn.0040b8e0
add esp, 4
push esi
call fcn.0040c415
add esp, 4
lea esi, [esp + 0x3c]
call fcn.004085f0
mov byte [esp + 0x1d0], 1
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4084f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1d0], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408519
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x1d0], 0xffffffff
call fcn.0040fd93
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.004feee9
mov esp, ebp
pop ebp
ret