Function at 0x457955
Capabilities:
Hide graphical window
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x28], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
push 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
call fcn.0044bc76
push 5
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x457998
xor eax, eax
inc eax
jmp 0x457c06
push 0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x457990
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
mov esi, eax
push edi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [esi + 0x218]
call fcn.0043cc6f
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x457bb5
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x2c], eax
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x214]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x18]
or edx, 0xffffffff
cmp eax, edx
cmove ecx, edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x457a5d
test esi, esi
je 0x457a5d
mov ebx, dword [ebp - 0x1c]
mov ecx, 0xfffe
mov edi, dword [ebp - 0x28]
cmp esi, ecx
mov eax, esi
push 0
cmova eax, ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
add eax, edi
push eax
push dword [ebx + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x457a57
and dword [ebp - 0x18], 0
mov ecx, 0xfffe
add edi, dword [ebp - 0x28]
sub esi, dword [ebp - 0x28]
jne 0x457a1f
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [ebp - 0x1c]
add esi, 0x218
push dword [esi]
call fcn.0043cd07
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x1c]
push 0
push esi
push dword [eax + 0x214]
call fcn.0043cd51
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x457bb5
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 - 0x1c]
push 0x60
push dword [eax + 0x218]
push edi
call fcn.004562de
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x457bb5
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push dword [ebx + 0xe]
push dword [ebx + 0xa]
push dword [ebx + 0x5a]
push dword [ebx + 0x56]
push edi
call fcn.0046b349
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x457bb2
push ebx
push edi
call fcn.004494e4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x457bb2
xor esi, esi
cmp dword [ebx + 0xa], esi
je 0x457b43
test byte [ebx + 0xe], 1
jne 0x457b43
push edi
call dword [sym.imp.USER32.dll_GetDC]
push dword [ebx + 0xa]
mov esi, eax
push esi
call fcn.0046ba5b
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
push dword [ebp - 0xc]
push dword [ebx + 2]
push esi
push esi
push edi
call fcn.0046b75b
push esi
push dword [ebp - 8]
push dword [ebx + 6]
push esi
push 1
push edi
call fcn.0046b75b
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_SetScrollPos]
push 1
push edi
call esi
xor eax, eax
push eax
push eax
push eax
push edi
call esi
movzx eax, word [ebx + 2]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
shl eax, 0x10
or eax, 0x63
push eax
push 0x114
push edi
call esi
movzx eax, word [ebx + 6]
push 0
shl eax, 0x10
or eax, 0x63
push eax
push 0x115
push edi
call esi
mov ebx, dword [ebp - 0x20]
push 0x7d00
push 2
call fcn.0046716d
push 0
push 2
call fcn.004671eb
cmp dword [ebp - 0x18], 0
pop esi
jne 0x457bfc
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x457be5
push 8
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 8
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.004596d6
push 1
push ebx
call fcn.0044c6a1
push 0
call fcn.0044bc76
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00475d95
mov esp, ebp
pop ebp
ret 8