Function at 0x4233b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x42c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x440]
mov eax, dword [esi + 0xa4]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x4233d4
push eax
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [esp + 0x44c]
mov edi, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x34], eax
cdq
and edx, 7
add eax, edx
mov dword [esi + 0x48], edi
add edi, 7
and edi, 0xfffffff8
sar eax, 3
imul eax, edi
cmp esi, 0x4866a0
mov dword [esi + 0x18], eax
mov eax, 1
mov dword [esi + 0xa4], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov word [esi + 0xac], bx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x78], eax
jne 0x423457
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
jmp 0x42346f
or edx, 0xffffffff
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x88], edx
neg ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x440]
mov word [esp + 0x20], ax
mov ax, word [esi + 0x34]
push ecx
mov dword [esp + 0x18], 0x28
mov dword [esp + 0x1c], edi
mov word [esp + 0x26], ax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.user32.dll_GetDC]
mov ebp, eax
cmp dword [esi + 0xa4], ebx
jne 0x423524
mov edi, dword [sym.imp.gdi32.dll_CreateDIBSection]
mov eax, dword [esi + 0x34]
cmp eax, 8
jne 0x4234df
push ebx
push ebx
lea edx, [esi + 0xa8]
push edx
push 1
lea eax, [esp + 0x24]
push eax
jmp 0x4234f3
cmp eax, 0x18
jne 0x4234fc
push ebx
push ebx
lea ecx, [esi + 0xa8]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push ebp
call edi
mov dword [esi + 0xa4], eax
cmp dword [esi + 0xa4], ebx
jne 0x423524
push 0x35
push 0x460480
call fcn.00411150
add esp, 8
cmp eax, 2
je 0x4235e8
cmp dword [esi + 0xa4], ebx
je 0x4234c5
cmp dword [esi + 0x30], 1
push ebp
jne 0x423604
mov ecx, dword [esp + 0x444]
push ecx
call dword [sym.imp.user32.dll_ReleaseDC]
mov edx, dword [esi + 0xa0]
push edx
call dword [sym.imp.user32.dll_GetDC]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov ebp, eax
mov eax, dword [esi + 0xa4]
push eax
push ebp
call dword [sym.imp.gdi32.dll_SelectObject]
mov dword [esi + 0xa4], eax
cmp dword [esi + 0x34], 8
jne 0x423586
mov ecx, dword [esp + 0x448]
push ecx
push 0x100
push ebx
push ebp
call dword [sym.imp.gdi32.dll_SetDIBColorTable]
mov ecx, dword [esi + 0x18]
imul ecx, dword [esi + 0x1c]
mov edi, dword [esi + 0xa8]
mov edx, ecx
shr ecx, 2
push 0xcc0020
xor eax, eax
rep stosd dword es:[edi], eax
push ebx
push ebx
mov ecx, edx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edi, dword [esp + 0x20]
push eax
push ecx
push ebx
push ebx
push edi
call dword [sym.imp.gdi32.dll_BitBlt]
mov edx, dword [esi + 0xa4]
push edx
push ebp
call dword [sym.imp.gdi32.dll_SelectObject]
push ebp
mov dword [esi + 0xa4], eax
call dword [sym.imp.gdi32.dll_DeleteDC]
mov eax, dword [esi + 0xa0]
push edi
push eax
jmp 0x42367e
mov eax, dword [esp + 0x440]
push ebp
push eax
call dword [sym.imp.user32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x42c
ret
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0xa4]
mov edi, eax
push ecx
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.gdi32.dll_SelectObject]
mov edx, dword [esp + 0x448]
push edx
push 0x100
push ebx
push edi
mov dword [esi + 0xa4], eax
call dword [sym.imp.gdi32.dll_SetDIBColorTable]
mov ecx, dword [esi + 0xc]
imul ecx, dword [esi + 8]
mov edi, dword [esi + 0xa8]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xa4]
mov edi, dword [esp + 0x10]
push eax
push edi
call dword [sym.imp.gdi32.dll_SelectObject]
push edi
mov dword [esi + 0xa4], eax
call dword [sym.imp.gdi32.dll_DeleteDC]
mov ecx, dword [esp + 0x440]
push ebp
push ecx
call dword [sym.imp.user32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x42c
ret