Function at 0x40a2e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x443038]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
sub eax, dword [ebp + 0x10]
xorps xmm0, xmm0
movq qword [ebp - 0xa4], xmm0
mov dword [ebp - 0xa0], eax
mov eax, edx
imul eax, dword [ebp + 0x10]
push ebx
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
shl eax, 2
movq qword [edi + 0x24], xmm0
movq qword [ebp - 0x9c], xmm0
movq qword [ebp - 0x94], xmm0
movq qword [edi + 0x2c], xmm0
movq qword [ebp - 0x8c], xmm0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0xa8], 0x28
mov dword [ebp - 0xa4], edx
mov dword [ebp - 0x9c], 0x200001
mov dword [ebp - 0x94], eax
mov dword [edi + 0x34], 0
test ecx, ecx
jne 0x40a3b6
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x40a3b6
push edi
lea eax, [ebp - 0x7c]
push str.Fatal_error:_read_write_at_0x_08x._At_function_newimage__construct_PIMAGE_before_initgraph_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x7c]
push 0x10
push str.ERROR_message
push eax
mov eax, dword [0x448fd8]
push dword [eax + 0x5c]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [edi + 4]
test ebx, ebx
jne 0x40a3ce
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x40a53c
push esi
push 0
push 0
lea eax, [ebp - 0xac]
push eax
push 0
lea eax, [ebp - 0xa8]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
mov dword [ebp - 0xb4], esi
test esi, esi
je 0x40a518
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor ecx, ecx
mov dword [ebp - 0xb0], eax
cmp dword [0x448ef0], ecx
jne 0x40a44a
mov esi, dword [sym.imp.GDI32.dll_GetCurrentObject]
push 2
push ebx
mov dword [0x448ef0], eax
call esi
push 1
push ebx
mov dword [0x448ef4], eax
call esi
push 6
push ebx
mov dword [0x448ef8], eax
call esi
mov esi, dword [ebp - 0xb4]
mov dword [0x448efc], eax
mov eax, dword [ebp - 0xb0]
xor ecx, ecx
cmp dword [edi + 4], 0
je 0x40a464
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, 1
jmp 0x40a485
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], edx
mov dword [edi + 0x34], 1
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xac]
mov dword [edi + 4], ebx
mov dword [edi + 8], esi
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
test ecx, ecx
jne 0x40a4e8
push edi
push 0xa8a8a8
call fcn.0040bbb0
push edi
push 0
call fcn.0040ba80
add esp, 0x10
push 2
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push edi
push 1
push 0
call fcn.0040bd00
push edi
push 1
push 0
push 0
call fcn.0040be10
push edi
push 2
push 0
call fcn.0040c0c0
push edi
push 0
call fcn.00409a20
add esp, 0x30
push edi
push 1
push dword [edi + 0x10]
push dword [edi + 0xc]
push 0
push 0
call fcn.0040c100
push edi
call fcn.0040b270
add esp, 0x1c
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015f2
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004015f2
mov esp, ebp
pop ebp
ret 0xc