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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3b68
mov eax, dword fs:[0]
push eax
sub esp, 0x280
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 + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x204]
mov dword [ebp - 0x1f0], esi
mov dword [ebp - 0x1d8], eax
call fcn.0043c470
xor ebx, ebx
push 0xa
lea ecx, [ebp - 0x258]
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 0x47d41b
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 - 0x1e0], eax
mov byte [ebp - 4], 2
call fcn.004b5c24
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47d44b
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 - 0x1d0], eax
mov ecx, dword [ebp - 0x1d8]
mov byte [esi + 0xd], bl
mov word [esi + 0x12], bx
mov ecx, dword [ecx + 0x1fc]
xor edi, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x1d4], ecx
cmp ecx, ebx
jne 0x47d4f0
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 0x47d4a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1e0]
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 0x47d4c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.004c3df9
lea ecx, [ebp - 0x204]
mov dword [ebp - 4], 0xffffffff
call fcn.0043c4b0
mov eax, 0x8000000
jmp 0x47da83
lea ecx, [ebp - 0x1cc]
call fcn.0048e420
lea ecx, [ebp - 0x28c]
call fcn.004048d0
mov ecx, dword [ebp - 0x1d8]
movzx eax, word [ecx + 0xe]
mov byte [ebp - 4], 5
cmp eax, 0xa
jne 0x47d525
mov dword [ebp - 0x1e4], 1
jmp 0x47d53e
push eax
call fcn.0044f000
movzx eax, al
add esp, 4
neg eax
sbb eax, eax
and eax, 2
mov dword [ebp - 0x1e4], eax
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx + 0x1f4]
mov ecx, eax
mov edx, eax
sar ecx, 0x10
shr eax, 0x18
and ecx, 0xff
push ecx
and al, 1
and edx, 0xffff
movzx eax, al
push edx
push eax
lea ecx, [ebp - 0x1cc]
call fcn.0048dfa0
xor ecx, ecx
cmp dword [ebp - 0x1e4], 2
sete cl
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.0048dfc0
call fcn.004ba943
cmp eax, ebx
je 0x47d5a1
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
cmp eax, ebx
jne 0x47d5a5
xor eax, eax
jmp 0x47d5a8
mov eax, dword [eax + 0x20]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.0048df30
push 2
lea ecx, [ebp - 0x1cc]
call fcn.0048df60
mov ecx, dword [ebp - 0x1d8]
mov edx, dword [ecx + 0x15c]
push edx
lea ecx, [ebp - 0x1cc]
call fcn.0048df70
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push 0x18
push eax
push ecx
lea ecx, [ebp - 0x28c]
call fcn.00404d90
lea edx, [ebp - 0x28c]
push edx
lea ecx, [ebp - 0x1cc]
call fcn.0048eb50
mov eax, dword [ebp - 0x1d4]
add eax, 4
push eax
lea ecx, [ebp - 0x1cc]
call fcn.0048fb40
test eax, eax
je 0x47d9ef
mov ecx, dword [ebp - 0x1e4]
push ecx
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x1f8], ebx
xor edi, edi
mov dword [ebp - 0x1d4], ebx
call fcn.0048f580
test eax, eax
je 0x47d85d
or eax, 0xffffffff
push 0x676b78
mov dword [ebp - method.ATL::CImage.virtual_0], vtable.ATL::CImage.0
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x220], bx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x676b90]
push 0x676b78
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x1ac]
mov edi, dword [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x1e0]
push str._t_d.gif
push ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x1f8], edx
call fcn.004065c0
mov edx, dword [ebp - 0x1e0]
add esp, 0xc
push edx
lea eax, [ebp - 0x208]
push eax
mov ecx, 0x66d9e8
call fcn.0043f620
mov ecx, dword [eax]
mov esi, dword [ebp - 0x1d0]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 7
cmp eax, esi
je 0x47d76d
cmp dword [esi + 0xc], ebx
jl 0x47d75d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47d75d
push eax
call fcn.00405fe0
mov dword [ebp - 0x1dc], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d74c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x1dc]
add ecx, 0x10
mov dword [ebp - 0x1d0], ecx
jmp 0x47d76d
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1d0]
call fcn.00406350
mov eax, dword [ebp - 0x208]
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 0x47d793
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push 0x18
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.00404d90
mov esi, dword [ebp - 0x1d8]
cmp dword [esi + 0x164], ebx
lea edx, [ebp - 0x28c]
setne al
movzx ecx, al
push ecx
push 4
push edx
lea eax, [ebp - 0x23c]
push eax
call fcn.004278b0
mov ecx, dword [ebp - 0x1d0]
add esp, 0x10
push 0x63b2c0
push ecx
lea ecx, [ebp - 0x23c]
call fcn.0042d970
test eax, eax
jne 0x47d82e
movzx edx, word [esi + 0xe]
push edx
call fcn.0044f060
add esp, 4
test al, al
je 0x47d816
lea eax, [ebp - 0x1d0]
push eax
lea ecx, [ebp - 0x258]
call fcn.004c3edc
jmp 0x47d828
lea ecx, [ebp - 0x1d0]
push ecx
lea ecx, [ebp - 0x258]
call fcn.004c3f16
inc dword [ebp - 0x1d4]
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 5
call fcn.00404d00
mov edx, dword [ebp - 0x1e4]
push edx
lea ecx, [ebp - 0x1cc]
call fcn.0048f580
test eax, eax
jne 0x47d648
mov esi, dword [ebp - 0x1f0]
mov ecx, dword [ebp + 0x10]
cmp dword [ebp - 0x1f8], ecx
jle 0x47d86e
mov dword [ebp - 0x1f8], ecx
mov eax, dword [ebp + 0x14]
cmp edi, eax
jle 0x47d877
mov edi, eax
cmp dword [ebp - 0x1f8], ecx
jne 0x47d883
cmp edi, eax
je 0x47d8c1
lea eax, [esi + 0x13]
push eax
push edi
call fcn.004780d0
shl al, 4
mov byte [esi + 0xd], al
lea eax, [esi + 0x12]
push eax
mov eax, dword [ebp - 0x1f8]
push eax
call fcn.004780d0
mov ecx, dword [ebp - 0x1d8]
or byte [esi + 0xd], al
movzx edx, word [ecx + 0xe]
push edx
call fcn.0044f060
add esp, 0x14
test al, al
je 0x47d8c1
or byte [esi + 0xd], 0x80
push 0x64
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x1e5]
mov dword [ebp - 0x1ec], ebx
call fcn.0043c4e0
mov edi, dword [ebp - 0x254]
mov dword [ebp - 0x1d4], eax
cmp edi, ebx
je 0x47d995
mov eax, edi
cmp edi, ebx
je 0x47da9f
mov ecx, dword [eax + 8]
mov esi, dword [ebp - 0x1d0]
mov edi, dword [edi]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x47d969
cmp dword [esi + 0xc], ebx
jl 0x47d959
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x47d959
push eax
call fcn.00405fe0
mov dword [ebp - 0x1dc], eax
add esp, 4
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d948
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x1dc]
add ecx, 0x10
mov dword [ebp - 0x1d0], ecx
jmp 0x47d969
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1d0]
call fcn.00406350
mov edx, dword [ebp - 0x1d0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47d987
mov eax, dword [ebp - 0x1d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp edi, ebx
jne 0x47d8f6
mov esi, dword [ebp - 0x1f0]
xor edi, edi
mov dword [esi + 0x24], ebx
cmp dword [ebp - 0x1d4], ebx
je 0x47d9ef
lea ecx, [ebp - 0x1ec]
push ecx
lea ecx, [ebp - 0x204]
call fcn.0043c490
mov dword [ebp - 0x1dc], eax
cmp eax, ebx
je 0x47d9e4
mov edi, dword [ebp - 0x1ec]
push edi
call fcn.005bb17a
mov edx, dword [ebp - 0x1dc]
push edi
push edx
push eax
mov dword [esi + 0x24], eax
call fcn.005bc350
mov edi, dword [ebp - 0x1ec]
add esp, 0x10
lea ecx, [ebp - 0x204]
call fcn.0043c4b0
and edi, 0xffffff
lea ecx, [ebp - 0x28c]
or edi, 0x8000000
call fcn.00404d00
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 3
call fcn.0048e260
mov eax, dword [ebp - 0x1d0]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47da3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1e0]
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 0x47da61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.004c3df9
lea ecx, [ebp - 0x204]
mov dword [ebp - 4], 0xffffffff
call fcn.0043c4b0
mov eax, edi
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