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

Disassembly:
sub esp, 0x60
xor eax, eax
push ebx
mov dword [esp + 0x38], eax
push ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
push esi
lea ecx, [esp + 0x3c]
push edi
mov dword [esp + 0x4c], eax
push ecx
mov dword [esp + 0x54], eax
push 0x18
push ebp
mov dword [esp + 0x4c], 0
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
push 0x34
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
mov ecx, 0xd
xor eax, eax
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], ebx
mov dword [ebx], 0x28
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x48]
push 0
push ebx
push 0
push edx
mov esi, eax
push 0
push ebp
push esi
mov dword [esp + 0x90], esi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebx + 0x14]
add eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp word [ebx + 0xe], 8
mov edi, eax
mov dword [esp + 0x30], edi
jne 0x41a9a6
push 0x428
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, 0xb
mov esi, ebx
mov edi, eax
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x7c]
add esp, 8
mov ecx, dword [ebx + 8]
push 0
push ebx
push edi
push ecx
push 0
push ebp
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
lea edx, [esp + 0x58]
push edx
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectA]
mov si, word [ebx + 0xe]
mov al, byte [esp + 0x78]
mov cl, byte [esp + 0x7a]
cmp si, 0x10
mov byte [esp + 0x78], cl
mov byte [esp + 0x7a], al
jne 0x41aa11
mov dl, byte [esp + 0x79]
mov ecx, dword [esp + 0x78]
and eax, 0xf8
and edx, 0xf8
shl eax, 5
or eax, edx
and ecx, 0xff
shl eax, 2
shr ecx, 3
or eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov edx, esi
mov ecx, eax
mov esi, dword [ebx + 8]
and cl, 3
mov dword [esp + 0x28], 0
shr edx, 3
neg cl
sbb ecx, ecx
and al, 0xfc
neg ecx
mov byte [esp + 0x74], dl
mov byte [esp + 0x13], 0
lea ecx, [eax + ecx*4]
lea eax, [esi - 1]
imul eax, ecx
mov edx, dword [esp + 0x74]
add eax, edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
and edx, 0xff
lea edi, [esi + 2]
imul eax, edx
shl edi, 4
add eax, ecx
push edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov ecx, edi
xor eax, eax
mov edi, ebp
lea edx, [ebp + 0x20]
add esp, 4
mov dword [esp + 0x20], edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x18], 0
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebp], 0x20
mov dword [ebp + 4], 1
mov eax, dword [ebx + 8]
test eax, eax
jle 0x41accb
mov edi, dword [esp + 0x20]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x41ac0f
lea eax, [esi + 2]
shl eax, 4
xor ecx, ecx
mov cx, word [ebx + 0xe]
add ecx, 0xfffffff8
cmp ecx, 0x18
ja case.0x41aae4.12
xor edx, edx
mov dl, byte [ecx + 0x41ad1c]
jmp dword [edx*4 + 0x41ad08]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cl, byte [edx]
mov edx, dword [esp + 0x78]
cmp dword [ebx + ecx*4 + 0x28], edx
jmp 0x41ab29
mov edx, dword [esp + 0x14]
mov cx, word [esp + 0x78]
cmp word [edx], cx
jmp 0x41ab29
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x78]
and edx, 0xffffff
cmp edx, ecx
jmp 0x41ab29
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
cmp dword [edx], ecx
setne byte [esp + 0x74]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
add edx, ecx
mov cl, byte [esp + 0x13]
test cl, cl
mov cl, byte [esp + 0x74]
mov dword [esp + 0x14], edx
je 0x41abea
test cl, cl
jne 0x41abfb
mov edx, dword [esp + 0x18]
lea ecx, [edx + 1]
mov edx, dword [ebp + 8]
shl edx, 4
add edx, edi
mov edi, dword [esp + 0x28]
mov dword [edx], edi
mov edi, dword [esp + 0x18]
mov dword [edx + 4], edi
mov edi, dword [esp + 0x1c]
mov dword [edx + 8], edi
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 8]
inc edx
mov ecx, edx
mov dword [ebp + 8], edx
cmp ecx, esi
jb 0x41abdf
add eax, 0x280
add esi, 0x28
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 8]
mov ebx, eax
add ecx, 2
mov esi, ebp
shl ecx, 4
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
lea edi, [ebx + 0x20]
mov ebp, ebx
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0x20], edi
mov byte [esp + 0x13], 0
jmp 0x41abfb
mov edi, dword [esp + 0x20]
mov byte [esp + 0x13], 0
jmp 0x41abfb
test cl, cl
je 0x41abfb
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
inc ecx
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jl 0x41aace
mov al, byte [esp + 0x13]
test al, al
je 0x41aca9
mov al, byte [esp + 0x74]
test al, al
je 0x41aca9
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
shl ecx, 4
lea eax, [edx + 1]
mov edx, dword [esp + 0x28]
add ecx, edi
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
inc ecx
mov eax, ecx
mov dword [ebp + 8], ecx
cmp eax, esi
jb 0x41aca4
add esi, 0x28
mov dword [esp + 0x2c], esi
add esi, 2
shl esi, 4
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], eax
add ecx, 2
mov edi, eax
shl ecx, 4
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
add esp, 8
lea edi, [ebp + 0x20]
mov dword [esp + 0x20], edi
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x41aab5
mov edx, dword [esp + 0x30]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
add esp, 8
add eax, 2
shl eax, 4
push ebp
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
push ebp
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret