Function at 0x47acd0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x57eca2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
mov eax, dword [ecx + 0x140]
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x24], ecx
je 0x47ad28
lea edi, [eax + 0x5488]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x6c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x47ad7b
push 0x104
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x5f3788
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
push ecx
call fcn.00443770
add esp, 8
mov ecx, eax
mov dword [esp + 0x17c], ebx
call fcn.0040d730
lea edx, [esp + 0x70]
push eax
push edx
call fcn.0043bab0
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x178], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ebp, 1
lea eax, [esp + 0x6c]
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call sub.MFC42.DLL_CString::CString_3
call fcn.00443380
add esp, 8
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_5
mov edi, dword [esp + 0x180]
lea ecx, [esp + 0x28]
push edi
push 0x5e0674
push ecx
mov dword [esp + 0x184], ebp
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x34]
mov byte [esp + 0x178], 2
call sub.MFC42.DLL_CString::CString_5
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x17c], 5
call fcn.004ac6f0
mov dword [esp + 0x58], ebx
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x2c]
push edx
mov byte [esp + 0x17c], 6
call sub.MFC42.DLL_CString::CString_3
push str._feiqCustomFace_face.xml
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x180], 7
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x178], 9
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00440560
add esp, 4
test al, al
jne 0x47aed0
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0x178], 0xc
call fcn.00450a00
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x178], 0xb
cmp eax, ebx
je 0x47ae8f
lea ecx, [esp + 0x5c]
call fcn.0047b340
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x178], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x178], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x178], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x47b320
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push edx
call fcn.004ac770
push str.CUSTOMFACE
lea ecx, [esp + 0x34]
call fcn.004acb10
test al, al
je 0x47b11b
lea ecx, [esp + 0x30]
call fcn.004ad000
lea ecx, [esp + 0x30]
call fcn.004ad000
push str.FACE
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebp
call fcn.004acaa0
test al, al
je 0x47afd6
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov bl, 0xd
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_5
lea eax, [esp + 0x14]
push 0x5e4d7c
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x180], bl
call fcn.00452e40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], 0xe
call fcn.00572d3c
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
push ecx
push edx
call esi
add esp, 8
test eax, eax
je 0x47afae
lea ecx, [esp + 0x1c]
inc ebp
mov byte [esp + 0x178], 9
call sub.MFC42.DLL_CString::CString
push str.FACE
lea ecx, [esp + 0x34]
call fcn.004acaa0
test al, al
jne 0x47af2c
mov dword [esp + 0x14], ebp
jmp 0x47afd4
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], ebp
call fcn.004ad0a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x178], 9
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
lea ecx, [esp + 0x30]
call fcn.004ad040
cmp dword [esp + 0x18], ebx
je 0x47b112
lea eax, [esp + 0x1c]
push str.imagecount
push eax
lea ecx, [esp + 0x38]
call fcn.00452e40
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
mov bl, 0xf
push ecx
mov byte [esp + 0x17c], bl
call esi
add esp, 4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x30]
mov ebp, eax
push str.pagecount
push edx
call fcn.00452e40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], 0x10
call fcn.00572d3c
lea ecx, [esp + 0x18]
mov byte [esp + 0x178], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x18]
mov edi, eax
add esp, 4
lea eax, [ecx + 0x5f]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
inc eax
dec ebp
jns 0x47b06e
xor ebp, ebp
cmp eax, edi
mov esi, eax
jg 0x47b0c0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
lea edx, [esi - 1]
lea eax, [esp + 0x6c]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_feiqCustomFaceCachePage_d.bmp
push ecx
mov byte [esp + 0x188], 0x11
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x24]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], bl
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, edi
jle 0x47b074
lea eax, [ebp + 0x60]
and eax, 0x8000007f
jns 0x47b0cf
dec eax
or eax, 0xffffff80
inc eax
jne 0x47b0d2
dec edi
mov ecx, dword [esp + 0x3c]
push ebp
push str.imagecount
push ecx
lea ecx, [esp + 0x3c]
call fcn.004aeaf0
mov edx, dword [esp + 0x3c]
push edi
push str.pagecount
push edx
lea ecx, [esp + 0x3c]
call fcn.004aeaf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x178], 9
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x180]
lea ecx, [esp + 0x30]
call fcn.004ad040
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
call fcn.004ac910
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_5
push ecx
mov bl, 0x12
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x5e29e4
mov byte [esp + 0x180], bl
call sub.MFC42.DLL_CString::CString_3
mov esi, dword [esp + 0x28]
push 0
push 2
lea ecx, [esp + 0x24]
push edi
push ecx
mov ecx, esi
call fcn.00479820
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 0x13
call fcn.00572d3c
lea ecx, [esp + 0x18]
mov byte [esp + 0x178], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push edx
call fcn.00440560
add esp, 4
test al, al
je 0x47b1a3
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
jmp 0x47b1a9
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x5e29e4
call sub.MFC42.DLL_CString::CString_3
push 0
push 1
lea ecx, [esp + 0x30]
push edi
push ecx
mov ecx, esi
call fcn.00479820
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 0x14
call fcn.00572d3c
lea ecx, [esp + 0x24]
mov byte [esp + 0x178], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push edx
call fcn.00440560
add esp, 4
test al, al
je 0x47b205
mov eax, dword [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x6c]
push edi
push ecx
lea edx, [esp + 0x18]
push str._s_feiqCustomFace_08xfixed.bmp
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
push eax
call fcn.00440560
add esp, 0x14
test al, al
je 0x47b232
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x178], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x178], 6
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x64]
xor esi, esi
dec edx
mov byte [esp + 0x178], 0x16
sar edx, 0x10
inc edx
test edx, edx
jle 0x47b289
mov eax, dword [esp + 0x60]
mov eax, dword [eax + esi*4]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x68]
add esp, 4
inc esi
dec ecx
sar ecx, 0x10
inc ecx
cmp esi, ecx
jl 0x47b26b
mov eax, dword [esp + 0x60]
test eax, eax
je 0x47b29a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x47b2dd
xor edi, edi
mov eax, dword [edi + ecx]
test eax, eax
je 0x47b2cc
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004d0dc0
push edx
push 0xc
push eax
call fcn.00573a2e
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x60]
add esp, 4
add edi, 4
cmp edi, 0x1c
jl 0x47b2a4
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x5c], 0
mov byte [esp + 0x178], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x178], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x178], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x16c
ret 8