Function at 0x300536e4
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 1
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x228], ebx
call fcn.30047fcd
push 5
push edi
call dword [sym.imp.USER32.dll_GetWindow]
cmp eax, ebx
mov dword [ebp - 0x224], eax
jne 0x3005373c
xor eax, eax
inc eax
jmp 0x300539df
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, ebx
mov dword [ebp - 0x22c], eax
je 0x30053734
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0x30001834
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x1002
lea eax, [ebp - 0x10c]
push eax
call fcn.300680ec
cmp eax, 0xffffffff
mov dword [ebp - 0x21c], eax
jne 0x300537a5
mov dword [ebp - 0x218], 0x2713
jmp 0x3005396f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
push ebx
push ebx
mov esi, eax
mov eax, dword [esi]
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
add esi, 4
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x300537dc
or dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], ebx
jne 0x30053848
jmp 0x30053840
mov ecx, dword [ebp - 0x220]
mov eax, 0xfffe
cmp ecx, eax
mov dword [ebp - 0x230], eax
ja 0x30053801
mov dword [ebp - 0x230], ecx
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x230]
mov eax, dword [ebp - 0x228]
add eax, esi
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30053848
mov eax, dword [ebp - 0x230]
sub dword [ebp - 0x220], eax
add dword [ebp - 0x228], eax
mov dword [ebp - 0x218], ebx
cmp dword [ebp - 0x220], ebx
ja 0x300537e6
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x21c], 0xffffffff
cmp dword [ebp - 0x218], ebx
jne 0x3005396f
push dword [ebp - 0x22c]
call edi
push ebx
push dword [ebp - 0x224]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
lea edi, [esi + 0x218]
push dword [edi]
call fcn.3003af3f
cmp eax, ebx
mov dword [ebp - 0x218], eax
jne 0x3005396f
push dword [edi]
call fcn.3003afe0
push 0xc8
push 6
push ebx
push edi
push dword [esi + 0x214]
call fcn.3003aedb
cmp eax, ebx
mov dword [ebp - 0x218], eax
jne 0x300539df
mov esi, dword [edi]
call fcn.30052aba
cmp eax, ebx
mov dword [ebp - 0x218], eax
jne 0x300539df
mov esi, dword [ebp - 0x224]
push esi
call fcn.30053159
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0x30096ba0
push ebx
push ebx
push eax
mov dword [ebp - 0x22c], eax
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push dword [ebp - 0x22c]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x5e
push dword [edi]
push esi
call fcn.30051fb3
cmp eax, ebx
mov dword [ebp - 0x218], eax
jne 0x300539df
push 4
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push ebx
push 0x64
push 0x64
push esi
call fcn.30067fbb
cmp eax, ebx
mov dword [ebp - 0x218], eax
jne 0x3005396f
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.30045c58
mov dword [ebp - 0x218], eax
push 0x7d00
push 2
call fcn.30063e2d
push ebx
push 2
call fcn.30063f5f
cmp dword [ebp - 0x21c], 0xffffffff
je 0x30053998
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x218], ebx
jne 0x300539d3
push 8
push dword [ebp - 0x224]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x234]
call fcn.300567d2
push 1
push dword [ebp - 0x234]
call fcn.3004a9d7
push ebx
call fcn.30047fcd
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30071b52
leave
ret 8