Function at 0x457c18
Capabilities:
Delete file
Get common file path
Hide graphical window
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 1
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x228], ebx
call fcn.0044bc76
push 5
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x230], edi
test edi, edi
jne 0x457c72
xor eax, eax
inc eax
jmp 0x457f1e
push ebx
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x457c6a
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
push ebx
push str.OPWTMP
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x1002
lea eax, [ebp - 0x10c]
push eax
call fcn.0046b716
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
jne 0x457cd9
mov dword [ebp - 0x218], 0x2713
jmp 0x457ec3
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
mov eax, dword [ecx]
add ecx, 4
mov dword [ebp - 0x21c], eax
xor eax, eax
push eax
push eax
push eax
push ebx
mov dword [ebp - 0x22c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x218]
or edx, 0xffffffff
cmp eax, edx
cmove ecx, edx
mov dword [ebp - 0x218], ecx
test ecx, ecx
jne 0x457d92
cmp dword [ebp - 0x21c], ecx
jbe 0x457d92
mov esi, dword [ebp - 0x21c]
mov ecx, 0xfffe
mov edi, dword [ebp - 0x228]
cmp esi, ecx
mov eax, esi
push 0
cmova eax, ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x22c]
add eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x457d86
and dword [ebp - 0x218], 0
mov ecx, 0xfffe
add edi, dword [ebp - 0x228]
sub esi, dword [ebp - 0x228]
jne 0x457d41
mov edi, dword [ebp - 0x230]
mov esi, dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
cmp dword [ebp - 0x218], 0
jne 0x457ec3
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov esi, eax
push edi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.USER32.dll_ShowWindow]
add esi, 0x218
push 1
push dword [esi]
call fcn.0043cc6f
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x457ebd
push dword [esi]
call fcn.0043cd07
mov eax, dword [ebp - 0x21c]
push 0xc8
push 6
push 0
push esi
push dword [eax + 0x214]
call fcn.0043cd21
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x457f1e
push dword [esi]
call fcn.0045748c
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x457f1e
push edi
call fcn.00454ddb
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 0x49dde8
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x21c]
push 0x5e
push dword [eax + 0x218]
push edi
call fcn.0045517b
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x457f1e
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor esi, esi
push esi
push esi
push 0x64
push 0x64
push edi
call fcn.0046b349
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x457ebd
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.00442c05
mov dword [ebp - 0x218], eax
mov esi, dword [ebp - 0x220]
push 0x7d00
push 2
call fcn.0046716d
push 0
push 2
call fcn.004671eb
cmp ebx, 0xffffffff
je 0x457ee4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x218], 0
jne 0x457f11
push 8
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.004596d6
push 1
push esi
call fcn.0044c6a1
push 0
call fcn.0044bc76
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475d95
mov esp, ebp
pop ebp
ret 8