Function at 0x47bed0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce5bf
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x532804]
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 esi, dword [ebp + 8]
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47c1a6
call dword [0x4d9da4]
mov ecx, eax
push 0x4de4fc
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x47bf64
mov ecx, esi
call dword [0x4d9f00]
mov dword [ebp - 0x23c], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47c188
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [eax + 8]
jmp 0x47c182
lea ecx, [ebp - 0x264]
call dword [0x4d9f00]
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47c1bc
lea eax, [ebp - 0x284]
push eax
call dword [0x4d9da8]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x264]
push ecx
push eax
lea eax, [ebp - 0x238]
push eax
call dword [0x4da028]
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x284]
call dword [0x4d9ef8]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x264]
call dword [0x4d9ef8]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x4ed46c
lea ecx, [ebp - 0x238]
call dword [0x4d9ee4]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x47c019
push 0x4de4fc
mov ecx, esi
call dword [0x4d9f00]
mov dword [ebp - 0x23c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call dword [0x4d9ef8]
jmp 0x47bf49
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str..ico
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
test eax, eax
jne 0x47c068
push 0x4de4fc
mov ecx, esi
call dword [0x4d9f00]
mov dword [ebp - 0x23c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call dword [0x4d9ef8]
jmp 0x47bf49
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x240], 0
test ecx, ecx
je 0x47c1d2
call dword [0x4d9da4]
push eax
call dword [0x4da3a4]
mov edi, eax
add esp, 4
mov dword [ebp - 0x240], edi
mov byte [ebp - 4], 0xa
test edi, edi
jne 0x47c0c9
push 0x4de4fc
mov ecx, esi
call dword [0x4d9f00]
mov dword [ebp - 0x23c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call dword [0x4d9ef8]
jmp 0x47bf49
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call dword [0x4d9ee8]
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x264]
push eax
push edi
call dword [0x4da398]
add esp, 8
mov bl, al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x264]
call dword [0x4d9ef8]
mov ecx, esi
test bl, bl
jne 0x47c13e
push 0x4de4fc
call dword [0x4d9f00]
mov dword [ebp - 0x23c], 1
mov byte [ebp - 4], 8
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call dword [0x4d9ef8]
jmp 0x47bf49
lea eax, [ebp - 0x218]
push eax
call dword [0x4d9ee8]
mov dword [ebp - 0x23c], 1
mov byte [ebp - 4], 8
push edi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call dword [0x4d9ef8]
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47c188
lea eax, [ebp + 0xc]
add ecx, 8
push eax
call dword [0x4d96c0]
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.004aeb30
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2d4]
call dword [0x4d9854]
mov byte [ebp - 4], 2
push eax
call fcn.00403e10
lea ecx, [ebp - 0x2d4]
call dword [0x4d9854]
mov byte [ebp - 4], 4
push eax
call fcn.00403e10
lea ecx, [ebp - 0x2d4]
call dword [0x4d9854]
mov byte [ebp - 4], 9
push eax
call fcn.00403e10
int3