Function at 0x4d2cf0
Capabilities:
Write file on windows

Disassembly:
add ecx, 0x20500
jmp 0x5043c0
sub esp, 0x50
push ebx
mov ebx, ecx
push esi
lea ecx, [esp + 0x1c]
mov eax, dword [ebx]
push edi
xor esi, esi
push ecx
mov ecx, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [eax + 0x54]
mov edx, dword [ebx + 8]
mov edi, dword [sym.imp.USER32.dll_GetDC]
push edx
call edi
test eax, eax
je 0x5045c5
mov eax, dword [ebx + 0x6b8]
cmp eax, esi
je 0x5045c5
lea ecx, [esp + 0x20]
push ebp
push ecx
push eax
mov ecx, ebx
call fcn.004ffd70
push esi
call edi
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
mov ebp, eax
mov dword [esp + 0x14], esi
call edi
mov edx, eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], eax
sub ecx, edi
push esi
lea eax, [esp + 0x14]
mov dword [esp + 0x40], ecx
push esi
push eax
lea ecx, [esp + 0x40]
push esi
push ecx
push edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], 0x28
mov word [esp + 0x58], 1
mov word [esp + 0x5a], 0x20
mov dword [esp + 0x5c], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, eax
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebx + 0x6b8]
push 0xcc0020
push esi
mov ecx, dword [esp + 0x34]
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
push edx
sub eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
sub ecx, eax
push ecx
push esi
push esi
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebx + 8]
push 5
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x5044ed
push esi
push ebp
mov ecx, ebx
call fcn.00504650
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x5044d5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x50458a
xor eax, eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], eax
push ecx
mov dword [esp + 0x40], eax
push 0x18
mov dword [esp + 0x48], eax
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x54], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0
push 0x80
push 2
push 0
push 2
add ebx, 0x6d8
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x50458a
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x3c]
push 0x18
push eax
push esi
mov dword [esp + 0x28], 0
call ebx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
imul edx, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
test eax, eax
pop ebp
je 0x5045b8
push eax
push 0
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5045c5
push eax
push 0
call esi
pop edi
pop esi
pop ebx
add esp, 0x50
ret