Function at 0x300539f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
xor edi, edi
push 1
mov dword [ebp - 0x10], edi
call fcn.30047fcd
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
cmp ebx, edi
jne 0x30053a1d
xor eax, eax
inc eax
jmp 0x30053c6b
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, edi
je 0x30053a15
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi + 0x218]
push 1
push dword [eax]
mov dword [ebp - 0x14], eax
call fcn.3003af3f
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x30053c1a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push edi
push edi
push dword [esi + 0x214]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x30053a89
or dword [ebp - 4], eax
cmp dword [ebp - 4], edi
jne 0x30053ad4
jmp 0x30053acf
mov ecx, dword [ebp - 8]
mov eax, 0xfffe
cmp ecx, eax
mov dword [ebp - 0xc], eax
ja 0x30053aa2
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add eax, ecx
push eax
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30053ad4
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
add dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
cmp dword [ebp - 8], edi
ja 0x30053a90
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.3003afe0
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x14]
push dword [esi + 0x214]
call fcn.3003af25
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x30053c1a
push ebx
call fcn.30053159
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0x30096ba0
push edi
mov esi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x14]
push 0x60
push dword [eax]
push ebx
call fcn.30051869
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x30053c1a
push 4
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push dword [esi + 0xe]
push dword [esi + 0xa]
push dword [esi + 0x5a]
push dword [esi + 0x56]
push ebx
call fcn.30067fbb
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x30053c1a
push esi
push ebx
call fcn.30046dc4
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x30053c1a
cmp dword [esi + 0xa], edi
je 0x30053bab
test byte [esi + 0xe], 1
jne 0x30053bab
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push dword [esi + 0xa]
mov dword [ebp + 0xc], eax
push eax
call fcn.30067de7
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
push dword [ebp - 0x24]
push dword [esi + 2]
push edi
push edi
push ebx
call fcn.30068047
push edi
push dword [ebp - 0x20]
push dword [esi + 6]
push edi
push 1
push ebx
call fcn.30068047
push edi
push edi
push 1
push ebx
call dword [sym.imp.USER32.dll_SetScrollPos]
push edi
push edi
push edi
push ebx
call dword [sym.imp.USER32.dll_SetScrollPos]
movzx eax, word [esi + 2]
push edi
shl eax, 0x10
or eax, 0x63
push eax
push 0x114
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, word [esi + 6]
push edi
shl eax, 0x10
or eax, 0x63
push eax
push 0x115
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x7d00
push 2
call fcn.30063e2d
push edi
push 2
call fcn.30063f5f
cmp dword [ebp - 4], edi
jne 0x30053c61
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x30053c4a
push 8
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 8
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call fcn.300567d2
push 1
push esi
call fcn.3004a9d7
push edi
call fcn.30047fcd
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 8