Function at 0x4f66c8
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 + 0x6d8]
lea edi, [ebx + 0x87b]
mov byte [ebx + 0x87a], al
call fcn.004b061d
mov al, byte [esi + 0x4b7]
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 0x4f677a
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x4f6777
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 0x4f6b40
jmp 0x4f67a5
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 0x4f6863
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 0x4f6863
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 0x4f6835
mov eax, dword [edi + 0x218]
and dword [ebp + 0xc], 0
test eax, eax
je 0x4f6877
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 0x4f6b33
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 0x4f68da
mov eax, dword [eax]
inc ecx
test eax, eax
jne 0x4f68d7
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 0x4f6b23
jmp 0x4f6902
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 0x4f697a
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4f6964
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 0x4f6af9
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 0x4f6a75
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 0x4f6a7e
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 0x4f6aa5
sub eax, edx
sar eax, 1
je 0x4f6b0a
lea eax, [ebp - 0x34c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4f6abe
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 0x4f6b0a
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 0x4f68ff
mov edi, dword [ebp + 0x14]
add dword [ebp + 0x10], 0x222
dec dword [ebp + 0x18]
jne 0x4f6897
mov edi, dword [edi]
test edi, edi
mov dword [ebp + 0x14], edi
jne 0x4f67a2
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 0x4f6b63
push edi
call esi
or edi, 0xffffffff
push dword [ebp - 0x18]
call fcn.00520947
cmp edi, 0xffffffff
pop ecx
je 0x4f6b74
push edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14