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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3ae6
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x34]
call fcn.0043c470
xor ebx, ebx
push 0xa
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], ebx
call fcn.004c3ccb
mov byte [ebp - 4], 1
call fcn.004b5c24
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47cf13
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.004b5c24
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47cf40
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00405ef0
mov edi, dword [ebp + 0xc]
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
cmp dword [edi + 0x168], ebx
je 0x47cffd
push str..doc
push eax
call fcn.005bcdf4
add esp, 8
test eax, eax
jne 0x47cffd
push 1
push esi
call fcn.0042dbe0
push 1
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.0042a3d0
add esp, 0x14
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00406510
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47cfcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
je 0x47d005
cmp dword [eax - 4], 1
jle 0x47cfea
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00405c00
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x47cffd
lea ecx, [ebp - 0x10]
call fcn.00405ef0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x47d028
cmp esi, ebx
jne 0x47d00d
xor eax, eax
jmp 0x47d01b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x47d012
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00406350
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x47d03d
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00405c00
mov eax, dword [ebp - 0x10]
cmp word [edi + 0xe], 0xa
sete cl
cmp dword [edi + 0x164], ebx
movzx edx, cl
push edx
setne cl
movzx edx, cl
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
push ecx
push eax
lea ecx, [ebp - 0xdc]
call fcn.0040f940
cmp dword [edi + 0x164], ebx
lea ecx, [ebp - 0xdc]
setne dl
movzx eax, dl
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x14], ebx
call fcn.0040f530
test eax, eax
je 0x47d212
or eax, 0xffffffff
push 0x676b78
mov dword [ebp - 0x68], vtable.ATL::CImage.0
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x4c], bx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x676b90]
push 0x676b78
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push str._t_d.gif
push edx
mov byte [ebp - 4], 6
call fcn.004065c0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, 0x66d9e8
call fcn.0043f620
mov ecx, dword [eax]
mov esi, dword [ebp - 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 7
cmp eax, esi
je 0x47d169
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x47d159
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47d159
push eax
call fcn.00405fe0
mov dword [ebp - 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x47d14e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
jmp 0x47d166
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406350
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47d18c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x77
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0040f7b0
mov edx, dword [ebp - 0x10]
push 0x63b2c0
push edx
lea ecx, [ebp - 0x68]
call fcn.0042d970
test eax, eax
jne 0x47d1e6
movzx eax, word [edi + 0xe]
push eax
call fcn.0044f060
add esp, 4
test al, al
je 0x47d1d4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x84]
call fcn.004c3edc
jmp 0x47d1e3
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x84]
call fcn.004c3f16
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.00404d00
cmp dword [edi + 0x164], ebx
setne al
movzx ecx, al
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0040f530
test eax, eax
jne 0x47d095
push 0x64
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x21]
mov dword [ebp - 0x20], ebx
call fcn.0043c4e0
mov edi, dword [ebp - 0x80]
mov dword [ebp - 0x14], eax
cmp edi, ebx
je 0x47d2c0
jmp 0x47d240
mov eax, edi
cmp edi, ebx
je 0x47d396
mov ecx, dword [eax + 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x47d2a4
cmp dword [esi + 0xc], ebx
jl 0x47d297
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47d297
push eax
call fcn.00405fe0
mov dword [ebp - 0x18], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d28c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
jmp 0x47d2a4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00406350
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47d2bc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp edi, ebx
jne 0x47d240
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [ecx + 0x24], ebx
cmp dword [ebp - 0x14], ebx
je 0x47d304
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x34]
call fcn.0043c490
mov edi, eax
cmp edi, ebx
je 0x47d2fc
mov esi, dword [ebp - 0x20]
push esi
call fcn.005bb17a
mov ecx, dword [ebp + 8]
push esi
push edi
push eax
mov dword [ecx + 0x24], eax
call fcn.005bc350
mov esi, dword [ebp - 0x20]
add esp, 0x10
lea ecx, [ebp - 0x34]
call fcn.0043c4b0
and esi, 0xffffff
lea ecx, [ebp - 0xdc]
or esi, 0x8000000
mov byte [ebp - 4], 3
call fcn.0040f5a0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47d342
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d365
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.004c3df9
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.0043c4b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a815b
int3