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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4382c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6bc
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esi + 0x28]
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], edi
je 0x41e109
mov ebp, dword [esi + 0x2c]
cmp ebp, edi
je 0x41e109
cmp dword [esi + 8], edi
je 0x41e109
xor eax, eax
mov ecx, 0x10a
lea edi, [esp + 0x198]
rep stosd dword es:[edi], eax
mov cl, byte [esi + 0xd]
test cl, cl
mov cx, word [esi + 4]
sete al
mov word [esp + 0x1a6], cx
mov ecx, dword [esi + 4]
mov dword [esp + 0x19c], ebx
mov dword [esp + 0x198], 0x28
mov word [esp + 0x1a4], 1
mov edi, eax
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, ebp
imul eax, ebx
xor edx, edx
neg ebp
mov ebx, 8
cmp ecx, ebx
mov ecx, dword [esi + 0x1c]
setle dl
mov dword [esp + 0x1ac], eax
mov eax, dword [esi + 0x10]
shl eax, cl
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x1a0], ebp
dec edx
and edx, 3
mov dword [esp + 0x1a8], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x1c0], eax
mov eax, dword [esi + 0x18]
shl edx, cl
mov ecx, dword [esi + 0x24]
shl eax, cl
mov dword [esp + 0x1c4], edx
mov dword [esp + 0x1c8], eax
mov eax, dword [esi + 0xc48]
test eax, eax
je 0x41dfdd
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x1a8]
push edx
push eax
call dword [0x43a080]
mov edi, eax
jmp 0x41e014
mov eax, dword [esi + 0xc44]
push eax
lea ecx, [esp + 0x30]
call fcn.00415d40
mov eax, dword [eax + 4]
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x1a8]
push edx
push eax
call dword [0x43a080]
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.00415dd0
test edi, edi
jne 0x41e042
call dword [0x43a248]
push eax
push str.unable_to_create_DIB_section
lea ecx, [esp + 0x98]
call fcn.0040ad7e
push 0x4429e0
lea eax, [esp + 0x94]
push eax
call fcn.00429439
push str.recreateBuffer__
push 0x44ada8
call fcn.00402bd0
mov eax, dword [esi + 0x3c]
add esp, 8
test eax, eax
je 0x41e1ce
push str.preserving_bitmap_contents
push 0x44ada8
call fcn.00402bd0
mov eax, dword [esi + 0xc48]
add esp, 8
test eax, eax
je 0x41e120
cmp dword [esi + 4], ebx
jg 0x41e092
push edi
push eax
lea ecx, [esi + 0x40]
push ecx
call fcn.0041dd00
add esp, 0xc
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0xc48]
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.00415eb0
mov ecx, dword [esi + 0xc48]
push edi
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6dc], 0
call fcn.00415eb0
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push 0
push 0
push edx
call dword [0x43a0a4]
lea ecx, [esp + 0x14]
call fcn.00415f50
lea ecx, [esp + 0x20]
mov dword [esp + 0x6d4], 0xffffffff
call fcn.00415f50
jmp 0x41e1ce
push str.one_of_area_or_format_not_set
push 0x44ada8
call fcn.00402bd0
add esp, 8
jmp 0x41e1ce
mov eax, dword [esi + 0xc44]
push eax
lea ecx, [esp + 0x18]
call fcn.00415d40
cmp dword [esi + 4], ebx
mov dword [esp + 0x6d4], 1
jg 0x41e152
mov ecx, dword [esp + 0x18]
push edi
push ecx
lea edx, [esi + 0x40]
push edx
call fcn.0041dd00
add esp, 0xc
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.00415eb0
mov edx, dword [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x6dc], 2
call fcn.00415eb0
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x28]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push 0
push 0
push eax
call dword [0x43a0a4]
lea ecx, [esp + 0x20]
call fcn.00415f50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6d4], 1
call fcn.00415f50
lea ecx, [esp + 0x14]
mov dword [esp + 0x6d4], 0xffffffff
call fcn.00415dd0
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x41e1e4
push eax
call dword [0x43a0a0]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
cmp edi, ebx
je 0x41e33d
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
push 0x54
push edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x34], ecx
call dword [0x43a0b4]
test eax, eax
jne 0x41e232
call dword [0x43a248]
push eax
push str.GetObject
lea ecx, [esp + 0x98]
call fcn.0040ad7e
push 0x4429e0
lea eax, [esp + 0x94]
push eax
call fcn.00429439
mov edi, dword [esi + 4]
mov ecx, dword [esi + 0x28]
mov eax, edi
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, eax
and edx, 0x80000003
mov dword [esi + 0xc40], ecx
jns 0x41e25b
dec edx
or edx, 0xfffffffc
inc edx
je 0x41e283
sub eax, edx
lea eax, [eax*8 + 0x20]
cdq
idiv edi
push eax
push ecx
push str.adjusting_DIB_stride:__d_to__d
push 0x44ada8
mov dword [esi + 0xc40], eax
call fcn.004018b0
add esp, 0x10
movzx eax, word [esp + 0x4a]
mov cl, byte [esi + 0xd]
test cl, cl
mov byte [esi + 0xc], 0
mov dword [esi + 8], eax
mov dword [esi + 4], eax
jne 0x41e2a2
cmp eax, 8
jg 0x41e2a2
xor ecx, ecx
jmp 0x41e2a7
mov ecx, 1
cmp eax, 8
mov byte [esi + 0xd], cl
jle 0x41e336
mov ebx, dword [esp + 0x78]
lea ecx, [esi + 0x1c]
push ecx
lea edx, [esi + 0x10]
push edx
push ebx
call 0x415900
mov ebp, dword [esp + 0x88]
lea eax, [esi + 0x20]
push eax
lea ecx, [esi + 0x14]
push ecx
push ebp
call 0x415900
mov edi, dword [esp + 0x98]
lea edx, [esi + 0x24]
push edx
lea eax, [esi + 0x18]
push eax
push edi
call 0x415900
or edi, ebp
add esp, 0x24
or edi, ebx
mov dword [esi + 8], 0
je 0x41e30b
xor eax, eax
shr edi, 1
inc eax
test edi, edi
jne 0x41e301
mov dword [esi + 8], eax
mov ecx, dword [esi + 8]
cmp ecx, dword [esi + 4]
jle 0x41e33d
push str.Bad_DIBSection_format__depth_exceeds_bpp_
lea ecx, [esp + 0x5c8]
call fcn.00401bd0
push 0x442958
lea edx, [esp + 0x5c8]
push edx
call fcn.00429439
mov ecx, esi
call fcn.0041ddf0
mov ecx, dword [esp + 0x6cc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret