Function at 0x4a7c90
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x583263
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], 0x5934ec
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x98], edi
call fcn.004374d0
mov eax, dword [esi + 0x68]
mov dword [esp + 0x14], edi
cmp eax, edi
jle 0x4a7e9d
mov ebp, dword [esp + 0x40]
xor ebx, ebx
jmp 0x4a7d00
xor edi, edi
mov eax, dword [esi + 0x64]
add eax, ebx
cmp dword [eax + 0x2d0], edi
je 0x4a7dad
add eax, 0x44
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x74]
push eax
lea ecx, [esp + 0x28]
push edi
push ecx
mov byte [esp + 0x9c], 1
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x64]
lea ecx, [esp + 0x30]
lea eax, [ebx + edx + 0x148]
push eax
call sub.MFC42.DLL_CString::CString_3
push eax
lea ecx, [esp + 0x30]
push edi
push ecx
mov byte [esp + 0x9c], 2
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 0
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x20], 1
mov edx, dword [esi + 0x64]
mov ecx, dword [ebx + edx + 0x2cc]
lea eax, [ebx + edx]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
cmp ecx, edx
je 0x4a7dce
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4a7e14
lea edi, [eax + 0x28c]
add eax, 4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x4a7e03
test cl, cl
je 0x4a7dff
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x4a7e03
add eax, 2
add edi, 2
test cl, cl
jne 0x4a7ddf
xor eax, eax
jmp 0x4a7e08
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a7e14
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4a7e24
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a7e6d
mov eax, dword [esp + 0x34]
add eax, 0x60
cdq
and edx, 0x7f
add eax, edx
mov edi, eax
xor eax, eax
sar edi, 7
inc edi
test ebp, ebp
jle 0x4a7e53
mov ecx, dword [esp + 0x3c]
cmp dword [ecx], edi
je 0x4a7e4f
inc eax
add ecx, 4
cmp eax, ebp
jl 0x4a7e41
jmp 0x4a7e53
cmp eax, ebp
jl 0x4a7e6d
lea ecx, [ebp + 1]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x40]
call fcn.004374d0
mov edx, dword [esp + 0x3c]
mov dword [edx + ebp*4], edi
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x68]
inc eax
add ebx, 0x2d4
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4a7cfe
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
jne 0x4a7ec9
cmp dword [esp + 0x1c], edi
jne 0x4a7ec9
cmp dword [esp + 0x20], edi
jne 0x4a7ec9
cmp dword [esp + 0x98], edi
je 0x4a7eb0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], 0x5934ec
cmp eax, edi
je 0x4a82a0
jmp 0x4a8297
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_5
lea eax, [esi + 0x74]
push str.face.xml
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x9c], 3
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 4
call fcn.00572d3c
lea ecx, [esp + 0x34]
mov byte [esp + 0x90], 3
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x2a0]
push edi
push edi
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00440560
add esp, 4
test al, al
je 0x4a81ff
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 5
call sub.MFC42.DLL_CString::CString_5
xor ebp, ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebp
push ebp
lea ecx, [esp + 0x50]
mov byte [esp + 0x94], 8
call fcn.004ac6f0
mov dword [esp + 0x74], ebp
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x90], 9
push ecx
lea ecx, [esp + 0x50]
call fcn.004ac770
push str.CUSTOMFACE
lea ecx, [esp + 0x50]
call fcn.004acb10
test al, al
je 0x4a813a
lea ecx, [esp + 0x4c]
call fcn.004ad000
mov edx, dword [esp + 0x58]
push edi
push str.imagecount
push edx
lea ecx, [esp + 0x58]
call fcn.004aeaf0
lea eax, [edi + 0x5f]
lea ecx, [esp + 0x4c]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
inc eax
push eax
mov eax, dword [esp + 0x5c]
push str.pagecount
push eax
call fcn.004aeaf0
lea ecx, [esp + 0x4c]
call fcn.004ad000
push str.FACE
lea ecx, [esp + 0x50]
call fcn.004acaa0
test al, al
je 0x4a8023
lea ecx, [esp + 0x4c]
call fcn.004ad0a0
push str.FACE
lea ecx, [esp + 0x50]
call fcn.004acaa0
test al, al
jne 0x4a8008
mov eax, dword [esi + 0x68]
test eax, eax
jle 0x4a8126
xor edi, edi
mov bl, 0xa
mov ecx, dword [esi + 0x64]
mov eax, dword [edi + ecx + 0x2d0]
test eax, eax
jne 0x4a8114
push 0
push 0
push str.FACE
lea ecx, [esp + 0x58]
call fcn.004afcb0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
mov edx, dword [esi + 0x64]
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], bl
mov eax, dword [edi + edx]
push eax
push 0x5e0674
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x64]
add esp, 0xc
lea ecx, [esp + 0x4c]
push edx
push 0x5e4d7c
push eax
call fcn.004aeb30
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
push ecx
push str.shortcut
push edx
lea ecx, [esp + 0x58]
call fcn.004aeb30
mov eax, dword [esi + 0x64]
mov ecx, dword [esp + 0x58]
lea eax, [edi + eax + 4]
push eax
push 0x5e4d6c
push ecx
lea ecx, [esp + 0x58]
call fcn.004aeb30
mov edx, dword [esi + 0x64]
lea ecx, [esp + 0x4c]
lea eax, [edi + edx + 0x44]
push eax
mov eax, dword [esp + 0x5c]
push 0x5e4d68
push eax
call fcn.004aeb30
mov ecx, dword [esi + 0x64]
mov edx, dword [esp + 0x58]
lea eax, [edi + ecx + 0x148]
lea ecx, [esp + 0x4c]
push eax
push str.fixed
push edx
call fcn.004aeb30
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], 9
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x68]
inc ebp
add edi, 0x2d4
cmp ebp, eax
jl 0x4a8032
lea ecx, [esp + 0x4c]
call fcn.004ad040
lea ecx, [esp + 0x4c]
call fcn.004ad040
xor ebp, ebp
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push eax
call fcn.004ac910
mov ecx, dword [esp + 0x80]
xor edi, edi
dec ecx
mov byte [esp + 0x90], 0xc
sar ecx, 0x10
inc ecx
test ecx, ecx
jle 0x4a8183
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + edi*4]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x84]
add esp, 4
inc edi
dec eax
sar eax, 0x10
inc eax
cmp edi, eax
jl 0x4a8162
mov eax, dword [esp + 0x7c]
cmp eax, ebp
je 0x4a8194
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x78]
cmp ecx, ebp
je 0x4a81d7
mov eax, dword [ecx + ebp]
test eax, eax
je 0x4a81c4
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push fcn.004d0dc0
push ecx
push 0xc
push eax
call fcn.00573a2e
push edi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x7c]
add esp, 4
add ebp, 4
cmp ebp, 0x1c
jl 0x4a819c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebp, ebp
lea ecx, [esp + 0x50]
mov dword [esp + 0x78], ebp
mov byte [esp + 0x90], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x90], 3
call sub.MFC42.DLL_CString::CString
jmp 0x4a8201
xor ebp, ebp
mov eax, dword [esp + 0x40]
xor edi, edi
cmp eax, ebp
jle 0x4a8263
mov bl, 0xd
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_5
mov edx, dword [esp + 0x3c]
mov ecx, dword [esi + 0x74]
mov byte [esp + 0x90], bl
mov eax, dword [edx + edi*4]
lea edx, [esp + 0x20]
dec eax
push eax
push ecx
push str._sCachePage_d.bmp
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x30]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x20]
mov byte [esp + 0x90], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x40]
inc edi
cmp edi, eax
jl 0x4a820d
xor ebp, ebp
cmp dword [esp + 0x98], ebp
je 0x4a8276
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xcc]
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], 0x5934ec
cmp eax, ebp
je 0x4a82a0
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 4