Function at 0x3005c30e
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 4
xor esi, esi
push edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], esi
mov dword [eax], esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x7531
push edi
mov dword [ebp - 0x21c], eax
call fcn.3003ce1d
push esi
push edi
call fcn.30052c49
cmp eax, esi
mov dword [ebp - 0x218], eax
jne 0x3005c55a
push ebx
lea eax, [ebp - 0x214]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
push esi
push 0x30001834
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [ebp - 0x21c]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
call ebx
push eax
mov dword [ebp - 0x224], eax
call fcn.30047c17
cmp eax, esi
mov dword [ebp - 0x218], eax
je 0x3005c3d5
push dword [ebp - 0x224]
call fcn.30047f0b
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x3005c553
push esi
push 0xffffffffffffffff
push esi
push 1
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.300376d6
cmp eax, esi
mov dword [ebp - 0x218], eax
jne 0x3005c559
push dword [ebp - 0x224]
call fcn.30047f0b
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.300680ec
cmp eax, 0xffffffff
mov dword [ebp - 0x224], eax
jne 0x3005c434
mov dword [ebp - 0x218], 0x2713
jmp 0x3005c546
lea ecx, [ebp - 0x220]
push ecx
push eax
call fcn.30067e92
cmp eax, esi
mov dword [ebp - 0x218], eax
jne 0x3005c53a
mov eax, dword [ebp - 0x220]
add eax, 4
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, esi
mov dword [ebp - 0x21c], eax
jne 0x3005c47a
mov dword [ebp - 0x218], 0x2714
jmp 0x3005c53a
push eax
call ebx
push esi
push esi
mov edi, eax
mov eax, dword [ebp - 0x220]
push esi
push dword [ebp - 0x224]
mov dword [edi], eax
add edi, 4
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x3005c4a4
or dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], esi
jne 0x3005c506
jmp 0x3005c4f5
mov ebx, 0xfffe
cmp dword [ebp - 0x220], ebx
ja 0x3005c4c1
mov ebx, dword [ebp - 0x220]
push esi
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x228]
push ebx
add eax, edi
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x3005c4ff
sub dword [ebp - 0x220], ebx
add dword [ebp - 0x228], ebx
mov dword [ebp - 0x218], esi
cmp dword [ebp - 0x220], esi
ja 0x3005c4ae
jmp 0x3005c506
or dword [ebp - 0x218], 0xffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x218], esi
je 0x3005c52c
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x21c], esi
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
mov dword [eax], ecx
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x218]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.30071b52
leave
ret 8