Function at 0x47c5e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e39f9
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
or eax, 0xffffffff
push 0x676b78
mov dword [ebp - 0x88], vtable.ATL::CImage.0
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x6c], bx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [0x676b90]
push 0x676b78
call edi
or eax, 0xffffffff
push 0x676b78
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], vtable.ATL::CImage.0
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x38], bx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call esi
inc dword [0x676b90]
push 0x676b78
call edi
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0043c470
push 0xa
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.004c3ccb
mov byte [ebp - 4], 3
call fcn.004b5c24
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x47c6e6
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
xor edi, edi
mov byte [ebp - 4], 4
cmp eax, 2
jne 0x47c72f
movzx ecx, word [esi + 0x152]
lea edx, [esi + 0x4d]
mov dword [ebp - 0x20], ecx
cmp edx, ebx
jne 0x47c71b
xor eax, eax
jmp 0x47c75f
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x14], ecx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x47c723
sub eax, dword [ebp - 0x14]
jmp 0x47c75f
cmp eax, 4
jne 0x47c96f
movzx edx, word [esi + 0x11a]
mov dword [ebp - 0x20], edx
lea edx, [esi + 0x14]
cmp edx, ebx
jne 0x47c74d
xor eax, eax
jmp 0x47c75f
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x14], ecx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x47c755
sub eax, dword [ebp - 0x14]
push eax
push edx
lea ecx, [ebp - 0x10]
call fcn.00406350
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x47c781
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00405c00
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x88]
call fcn.00422230
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 - 0x54]
call fcn.00404d90
cmp dword [esi + 0x164], ebx
mov ecx, dword [ebp - 0x20]
setne dl
movzx eax, dl
push eax
push ecx
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.004278b0
add esp, 0x10
push str.___H809.gif
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x66d9e8
call fcn.0043f620
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00406510
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47c80b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
push 0x63b2c0
push ecx
lea ecx, [ebp - 0x54]
call fcn.0042d970
test eax, eax
jne 0x47c8fe
mov eax, dword [ebp - 0x50]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, ebx
je 0x47c850
push eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x38], bx
call edi
mov eax, dword [ebp - 0x84]
cmp eax, ebx
je 0x47c87c
push eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov word [ebp - 0x6c], bx
call edi
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0xb0]
call fcn.004c3f16
push 0x64
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x15]
mov dword [ebp - 0x1c], ebx
call fcn.0043c4e0
mov edx, dword [ebp - 0x10]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [eax + 0x24], ebx
cmp esi, ebx
je 0x47c8fb
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x94]
call fcn.0043c490
mov esi, eax
cmp esi, ebx
je 0x47c8f0
mov edi, dword [ebp - 0x1c]
push edi
call fcn.005bb17a
mov edx, dword [ebp + 8]
push edi
push esi
push eax
mov dword [edx + 0x24], eax
call fcn.005bc350
mov edi, dword [ebp - 0x1c]
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.0043c4b0
or esi, 0xffffffff
mov eax, dword [ebp - 0x10]
and edi, 0xffffff
add eax, 0xfffffff0
or edi, 0x8000000
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x47c92a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.004c3df9
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0043c4b0
lea ecx, [ebp - 0x54]
call fcn.00404d00
lea ecx, [ebp - 0x88]
call fcn.00404d00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c98f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.004c3df9
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0043c4b0
lea ecx, [ebp - 0x54]
call fcn.00404d00
lea ecx, [ebp - 0x88]
call fcn.00404d00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret