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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebx + 0x820]
call fcn.00406399
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x47f]
mov dword [ebx + 0x876], eax
mov al, byte [esi + 0x92d]
lea edi, [ebx + 0x87b]
mov byte [ebx + 0x87a], al
call fcn.004b061d
mov al, byte [esi + 0x70c]
mov edx, dword [ebp + 0x10]
mov edi, 0x104
push edi
mov esi, ebx
mov byte [ebx + 0x89f], al
call fcn.0044b0f6
mov edx, dword [ebp + 0x14]
push edi
lea esi, [ebx + 0x208]
call fcn.0044b0f6
lea esi, [ebx + 0x410]
push esi
push ebx
call fcn.00401c9b
push 0x3e8
push esi
lea esi, [ebp - 0x1c]
call fcn.00401f2b
mov edx, dword [ebp + 0x18]
push edi
lea esi, [ebx + 0x618]
call fcn.0044b0f6
mov edi, 0x8000
lea esi, [ebp - 0x18]
call fcn.0042873c
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x487]
xor ecx, ecx
jmp 0x4f6dc6
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x4f6dc3
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp + 0xc], ecx
call fcn.0043012f
mov edi, dword [esi + 0x487]
test edi, edi
mov dword [ebp + 0x14], edi
je 0x4f718c
jmp 0x4f6df1
mov edi, dword [ebp + 0x14]
push 0x104
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x140]
call fcn.00423e39
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
xor eax, eax
lea esi, [edi + 0x214]
cmp dword [esi], eax
push 4
setne al
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov esi, dword [esi]
test esi, esi
je 0x4f6eaf
fld qword [esi + 0xc]
call fcn.00536026
mov dword [ebp - 0x34], eax
push 8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], edx
call fcn.0043012f
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp + 0xc], 0x63
call fcn.0043012f
mov eax, dword [esi + 0x18]
mov dword [ebp + 8], eax
push 4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
and dword [ebp + 0xc], 0
cmp dword [ebp + 8], 0
jbe 0x4f6eaf
mov ecx, dword [ebp + 0xc]
mov eax, esi
call fcn.004b0ede
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
call fcn.0043012f
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
jb 0x4f6e81
mov eax, dword [edi + 0x218]
and dword [ebp + 0xc], 0
test eax, eax
je 0x4f6ec3
mov eax, dword [eax + 0x10]
mov dword [ebp + 0xc], eax
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x4f717f
and dword [ebp + 0x10], 0
mov dword [ebp + 0x18], eax
mov eax, dword [edi + 0x218]
mov esi, dword [eax + 0xc]
add esi, dword [ebp + 0x10]
push 4
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
push 2
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x140]
call fcn.00423e39
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov eax, dword [esi + 4]
xor ecx, ecx
jmp 0x4f6f26
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x4f6f23
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp + 0xc], ecx
call fcn.0043012f
mov esi, dword [esi + 4]
test esi, esi
mov dword [ebp + 8], esi
je 0x4f716f
jmp 0x4f6f4e
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov dword [ebp + 0xc], eax
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov eax, dword [esi + 8]
mov dword [ebp + 0xc], eax
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea edi, [esi + 0xc]
lea eax, [ebp - 0x28]
call fcn.0041d337
mov edi, dword [ebp - 0x24]
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp + 0xc], edi
call fcn.0043012f
test edi, edi
jbe 0x4f6fc6
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4f6fb0
mov eax, 0x53ec98
push edi
push eax
lea eax, [ebp - 0x140]
call fcn.00423e39
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
fld qword [esi + 0x18]
fmul qword [0x5998c8]
call fcn.00536026
push 4
pop edi
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
fld qword [esi + 0x20]
fmul qword [0x5998c8]
call fcn.00536026
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov eax, dword [esi + 0x28]
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov eax, dword [esi + 0x30]
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov eax, dword [esi + 0x34]
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov eax, dword [esi + 0x3e]
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
cmp byte [esi + 0x38], 0
je 0x4f7145
lea eax, [ebp - 0x554]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str..png
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x554]
push eax
call fcn.00449393
mov eax, dword [esi + 0x3a]
lea ecx, [ebp - 0x34c]
push ecx
push eax
call fcn.0045d7d0
test al, al
jne 0x4f70c1
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
and word [ebp - 0x34c], 0
lea eax, [ebp - 0x34c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4f70ca
sub eax, edx
sar eax, 1
mov dword [ebp + 0xc], eax
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
lea eax, [ebp - 0x34c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4f70f1
sub eax, edx
sar eax, 1
je 0x4f7156
lea eax, [ebp - 0x34c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4f710a
sub eax, edx
sar eax, 1
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x34c]
push eax
mov esi, 0x104
lea edi, [ebp - 0x140]
call fcn.0040141f
push dword [ebp + 0xc]
mov eax, edi
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
mov esi, dword [ebp + 8]
jmp 0x4f7156
and dword [ebp + 0xc], 0
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.0043012f
push dword [ebp - 0x28]
call fcn.00520947
mov esi, dword [esi]
test esi, esi
pop ecx
mov dword [ebp + 8], esi
jne 0x4f6f4b
mov edi, dword [ebp + 0x14]
add dword [ebp + 0x10], 0x222
dec dword [ebp + 0x18]
jne 0x4f6ee3
mov edi, dword [edi]
test edi, edi
mov dword [ebp + 0x14], edi
jne 0x4f6dee
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x18]
push eax
call fcn.00401eb7
mov edi, dword [ebp - 0x1c]
cmp edi, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4f71af
push edi
call esi
or edi, 0xffffffff
push dword [ebp - 0x18]
call fcn.00520947
cmp edi, 0xffffffff
pop ecx
je 0x4f71c0
push edi
call esi
pop edi
pop esi
invalid