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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3a6d
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
lea ecx, [ebp - 0xe4]
mov dword [ebp - 0xd4], eax
call fcn.0043c470
xor ebx, ebx
push 0xa
lea ecx, [ebp - 0x134]
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 0x47ca58
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 - 0xcc], eax
mov byte [ebp - 4], 2
call fcn.004b5c24
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47ca88
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 - 0xbc], eax
or eax, 0xffffffff
push 0x676b78
mov dword [ebp - method.ATL::CImage.virtual_0], vtable.ATL::CImage.0
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], ebx
mov word [ebp - 0xfc], 0
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x676b90]
push 0x676b78
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp word [edi + 0xe], 0xa
mov eax, dword [edi + 0x158]
sete cl
movzx edx, cl
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [edi + 0x11c]
push ecx
push esi
push edx
push eax
lea ecx, [edi + 0x14]
push ecx
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.00410270
cmp dword [edi + 0x164], ebx
lea ecx, [ebp - 0xb8]
setne dl
movzx eax, dl
push eax
mov byte [ebp - 4], 5
mov dword [ebp - 0xc0], ebx
call fcn.0040fca0
test eax, eax
je 0x47ccbd
mov ecx, dword [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xcc]
push str._t_d.gif
push edx
call fcn.004065c0
mov eax, dword [ebp - 0xcc]
add esp, 0xc
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, 0x66d9e8
call fcn.0043f620
mov ecx, dword [eax]
mov esi, dword [ebp - 0xbc]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 6
cmp eax, esi
je 0x47cc0b
cmp dword [esi + 0xc], ebx
jl 0x47cbfb
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47cbfb
push eax
call fcn.00405fe0
mov dword [ebp - 0xd0], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47cbea
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0xd0]
add ecx, 0x10
mov dword [ebp - 0xbc], ecx
jmp 0x47cc0b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0xbc]
call fcn.00406350
mov eax, dword [ebp - 0xd8]
add eax, 0xfffffff0
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47cc31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x77
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0xb8]
call fcn.0040fb10
mov edx, dword [ebp - 0xbc]
push 0x63b2c0
push edx
lea ecx, [ebp - 0x118]
call fcn.0042d970
test eax, eax
jne 0x47cc9d
movzx eax, word [edi + 0xe]
push eax
call fcn.0044f060
add esp, 4
test al, al
je 0x47cc85
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x134]
call fcn.004c3edc
jmp 0x47cc97
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x134]
call fcn.004c3f16
inc dword [ebp - 0xc0]
cmp dword [edi + 0x164], ebx
setne al
movzx ecx, al
push ecx
lea ecx, [ebp - 0xb8]
call fcn.0040fca0
test eax, eax
jne 0x47cb6e
push 0x64
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0xc5]
mov dword [ebp - 0xc4], ebx
call fcn.0043c4e0
mov edi, dword [ebp - 0x130]
mov dword [ebp - 0xc0], eax
cmp edi, ebx
je 0x47cd8e
mov eax, edi
cmp edi, ebx
je 0x47ce9b
mov ecx, dword [eax + 8]
mov esi, dword [ebp - 0xbc]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x47cd68
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x47cd56
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47cd56
push eax
call fcn.00405fe0
mov dword [ebp - 0xd0], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x47cd45
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0xd0]
add ecx, 0x10
mov dword [ebp - 0xbc], ecx
jmp 0x47cd66
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0xbc]
call fcn.00406350
xor ebx, ebx
mov edx, dword [ebp - 0xbc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47cd86
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp edi, ebx
jne 0x47ccf2
mov ecx, dword [ebp - 0xd4]
xor esi, esi
mov dword [ecx + 0x24], ebx
cmp dword [ebp - 0xc0], ebx
je 0x47cdea
lea edx, [ebp - 0xc4]
push edx
lea ecx, [ebp - 0xe4]
call fcn.0043c490
mov edi, eax
cmp edi, ebx
je 0x47cddf
mov esi, dword [ebp - 0xc4]
push esi
call fcn.005bb17a
mov ecx, dword [ebp - 0xd4]
push esi
push edi
push eax
mov dword [ecx + 0x24], eax
call fcn.005bc350
mov esi, dword [ebp - 0xc4]
add esp, 0x10
lea ecx, [ebp - 0xe4]
call fcn.0043c4b0
and esi, 0xffffff
lea ecx, [ebp - 0xb8]
or esi, 0x8000000
mov byte [ebp - 4], 4
call fcn.0040fa80
lea ecx, [ebp - 0x118]
call fcn.00404d00
mov eax, dword [ebp - 0xbc]
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 0x47ce36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0xcc]
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 0x47ce5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0
call fcn.004c3df9
lea ecx, [ebp - 0xe4]
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 ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret
call fcn.004a815b
int3