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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x30], esi
mov eax, dword [esi + 4]
test eax, eax
je 0x40e89c
mov edi, dword [ebp + 8]
test edi, edi
je 0x40e89c
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x40e89c
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40e89c
mov dl, byte [esi + 0x17a]
test dl, dl
je 0x40e89c
test ecx, ecx
jge 0x40dde9
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0x14], ecx
test eax, eax
jge 0x40ddf3
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x18], eax
mov edx, dword [esi + 0x148]
mov ebx, dword [esi + 0x18c]
cmp edx, 0xffffffff
mov edx, dword [ebp + 0x1c]
setne byte [esp + 0x16]
test ebx, ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
setne byte [esp + 0x17]
test edx, edx
je 0x40de4f
lea eax, [esp + 0xc0]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetClipBox]
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 1
push eax
push edi
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
mov edx, dword [esp + 0x50]
push edx
call ebx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dl, byte [esp + 0x16]
test dl, dl
jne 0x40e1ac
mov dl, byte [esp + 0x17]
test dl, dl
jne 0x40e1ac
mov dl, byte [esi + 0x179]
test dl, dl
jne 0x40e1ac
cmp ecx, dword [esi + 0xc]
jne 0x40deb5
cmp eax, dword [esi + 0x10]
jne 0x40deb5
push 3
push edi
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x34]
push 0
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
jmp 0x40e86a
lea edx, [esp + 0x78]
push edx
push edi
call dword [sym.imp.GDI32.dll_GetClipBox]
mov ebx, dword [esp + 0x78]
mov eax, dword [ebp + 0xc]
cmp ebx, eax
mov edx, ebx
jg 0x40ded0
mov edx, eax
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jge 0x40dee1
mov dword [esp + 0x3c], ecx
jmp 0x40deed
cmp ebx, eax
mov dword [esp + 0x3c], ebx
jg 0x40deed
mov dword [esp + 0x3c], eax
mov edx, dword [ebp + 0x14]
add eax, edx
mov edx, ecx
cmp ecx, eax
jl 0x40defa
mov edx, eax
cmp ebx, edx
jg 0x40df06
cmp ecx, eax
mov ebx, ecx
jl 0x40df06
mov ebx, eax
mov esi, dword [esp + 0x7c]
mov eax, dword [ebp + 0x10]
cmp esi, eax
mov edx, esi
jg 0x40df15
mov edx, eax
mov ecx, dword [esp + 0x84]
cmp ecx, edx
jge 0x40df26
mov dword [esp + 0x40], ecx
jmp 0x40df32
cmp esi, eax
mov dword [esp + 0x40], esi
jg 0x40df32
mov dword [esp + 0x40], eax
mov edx, dword [ebp + 0x18]
add eax, edx
mov edx, ecx
cmp ecx, eax
jl 0x40df3f
mov edx, eax
cmp esi, edx
jle 0x40df49
mov dword [esp + 0x48], esi
jmp 0x40df55
cmp ecx, eax
mov dword [esp + 0x48], ecx
jl 0x40df55
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
sub ebx, eax
sub esi, edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], ebx
push eax
mov dword [esp + 0x68], esi
mov dword [esp + 0x94], 0x28
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
mov word [esp + 0xa0], 1
mov word [esp + 0xa2], 0x18
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
lea ecx, [esp + 0x30]
push 0
mov edi, eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [esp + 0x9c]
push 0
push edx
push eax
mov dword [esp + 0x78], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40e177
lea ecx, [ebx + ebx*2]
lea eax, [ecx*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x30]
test esi, esi
fild dword [eax + 0xc]
fidiv dword [ebp + 0x14]
fstp dword [esp + 0x68]
fild dword [eax + 0x10]
fidiv dword [ebp + 0x18]
fstp dword [esp + 0x6c]
jle 0x40e177
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0x10]
sub eax, edx
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul dword [esp + 0x6c]
fstp qword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push edi
push ebx
call fcn.0041ea21
add esp, 8
call fcn.0041e3a0
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x10]
sub ecx, eax
jns 0x40e082
mov dword [esp + 0x4c], 0
jmp 0x40e09a
push edi
push ebx
call fcn.0041ea21
add esp, 8
call fcn.0041e3a0
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
xor ebx, ebx
lea edi, [edx + eax]
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x40e145
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
mov ecx, ebx
sub esp, 8
sub ecx, eax
add ecx, edx
mov dword [esp + 0x58], ecx
fild dword [esp + 0x58]
fmul dword [esp + 0x70]
fstp qword [esp]
call fcn.0041e952
add esp, 8
call fcn.0041e3a0
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x40e114
mov edx, dword [esp + 0x4c]
mov ecx, esi
push edx
push eax
call fcn.0040f380
push eax
lea eax, [esp + 0x74]
push eax
mov ecx, esi
call fcn.0040f310
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov cl, byte [esp + 0x3a]
mov dl, byte [esp + 0x39]
mov al, byte [esp + 0x38]
jmp 0x40e12f
mov ecx, dword [esi + 0x30]
lea edx, [eax + eax*2]
imul ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x34]
add ecx, edx
add ecx, eax
mov al, byte [ecx]
mov dl, byte [ecx + 1]
inc ecx
mov cl, byte [ecx + 1]
mov byte [edi], al
inc edi
mov eax, dword [esp + 0x10]
mov byte [edi], dl
inc edi
mov byte [edi], cl
inc edi
inc ebx
cmp ebx, eax
jl 0x40e0b3
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add ecx, eax
mov eax, dword [esp + 0x34]
dec edx
dec eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
jne 0x40e03d
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x90]
mov eax, dword [esp + 0x40]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [ebp + 8]
push esi
push 0
push 0
push 0
push esi
push ebx
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov eax, dword [esp + 0x58]
jmp 0x40e84f
lea ecx, [esp + 0x78]
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetClipBox]
mov ebx, dword [esp + 0x78]
mov eax, dword [ebp + 0xc]
cmp ebx, eax
mov edx, ebx
jg 0x40e1c7
mov edx, eax
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jge 0x40e1d8
mov dword [esp + 0x3c], ecx
jmp 0x40e1e4
cmp ebx, eax
mov dword [esp + 0x3c], ebx
jg 0x40e1e4
mov dword [esp + 0x3c], eax
mov edx, dword [ebp + 0x14]
add eax, edx
mov edx, ecx
cmp ecx, eax
jl 0x40e1f1
mov edx, eax
cmp ebx, edx
jg 0x40e1fd
cmp ecx, eax
mov ebx, ecx
jl 0x40e1fd
mov ebx, eax
mov esi, dword [esp + 0x7c]
mov eax, dword [ebp + 0x10]
cmp esi, eax
mov edx, esi
jg 0x40e20c
mov edx, eax
mov ecx, dword [esp + 0x84]
cmp ecx, edx
jge 0x40e21d
mov dword [esp + 0x40], ecx
jmp 0x40e229
cmp esi, eax
mov dword [esp + 0x40], esi
jg 0x40e229
mov dword [esp + 0x40], eax
mov edx, dword [ebp + 0x18]
add eax, edx
mov edx, ecx
cmp ecx, eax
jl 0x40e236
mov edx, eax
cmp esi, edx
jle 0x40e240
mov dword [esp + 0x48], esi
jmp 0x40e24c
cmp ecx, eax
mov dword [esp + 0x48], ecx
jl 0x40e24c
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
sub ebx, eax
lea eax, [esp + 0x70]
sub esi, edi
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x90], esi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 0
call fcn.0040ed30
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov dword [esp + 0x68], ecx
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x94], 0x28
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
mov word [esp + 0xa0], 1
mov word [esp + 0xa2], 0x18
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebp + 8]
mov edi, eax
push 0
lea eax, [esp + 0x50]
push 0
push eax
lea ecx, [esp + 0x9c]
push 0
push ecx
push edx
mov dword [esp + 0x68], edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebp + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x40]
push 0xcc0020
push eax
push ecx
push edx
push esi
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40e814
lea eax, [ebx + ebx*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
mov edx, dword [ebp + 0x14]
sar eax, 5
shl eax, 2
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
mov dword [esp + 0x58], ecx
jne 0x40e590
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0x18]
cmp edx, ecx
jne 0x40e590
mov edx, dword [esp + 0x48]
sub ecx, edx
mov edx, dword [ebp + 0x10]
add ecx, edx
test esi, esi
mov dword [esp + 0x28], ecx
jle 0x40e814
mov ecx, dword [esp + 0x3c]
mov edx, dword [ebp + 0xc]
sub ecx, edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], esi
jmp 0x40e3a5
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
mov ecx, edx
imul ecx, dword [eax + 0xc]
add esi, edi
mov edi, dword [eax + 0x30]
imul edi, edx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x24], ecx
lea ecx, [ecx + ecx*2]
add edi, ecx
mov ecx, dword [eax + 0x34]
add edi, ecx
test ebx, ebx
jle 0x40e565
mov dword [esp + 0x34], ebx
mov al, byte [esp + 0x17]
test al, al
je 0x40e406
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov eax, dword [edx + 0x18c]
add eax, ecx
mov ecx, dword [esp + 0x60]
mov dl, byte [eax + ecx]
mov byte [esp + 0x10], dl
jmp 0x40e40b
mov byte [esp + 0x10], 0xff
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
xor ebx, ebx
and ecx, 0xff
mov bl, byte [eax + 0x178]
inc ebx
imul ebx, ecx
mov ecx, dword [eax + 0x28]
sar ebx, 8
test ecx, ecx
mov byte [esp + 0x10], bl
je 0x40e48a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
push edx
push eax
call fcn.0040f380
lea ecx, [esp + 0x74]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0040f310
mov edx, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov cl, byte [edx + 0x179]
test cl, cl
je 0x40e4a4
mov ebx, dword [esp + 0x1b]
mov ecx, dword [esp + 0x10]
and ebx, 0xff
and ecx, 0xff
inc ebx
imul ebx, ecx
sar ebx, 8
mov byte [esp + 0x10], bl
jmp 0x40e4a4
mov dl, byte [edi]
mov al, byte [edi + 1]
inc edi
mov byte [esp + 0x18], dl
inc edi
mov byte [esp + 0x19], al
mov cl, byte [edi]
inc edi
mov byte [esp + 0x1a], cl
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x68]
jne 0x40e4ba
mov cl, byte [esp + 0x16]
test cl, cl
je 0x40e4ba
add esi, 3
jmp 0x40e549
test bl, bl
jne 0x40e4c6
add esi, 3
jmp 0x40e549
cmp bl, 0xff
jne 0x40e4e1
mov dl, byte [esp + 0x18]
mov al, byte [esp + 0x19]
mov cl, byte [esp + 0x1a]
mov byte [esi], dl
inc esi
mov byte [esi], al
inc esi
mov byte [esi], cl
jmp 0x40e548
mov ecx, dword [esp + 0x10]
and eax, 0xff
not bl
mov byte [esp + 0x64], bl
xor ebx, ebx
mov edx, dword [esp + 0x64]
mov bl, byte [esi]
and ecx, 0xff
and edx, 0xff
imul eax, ecx
imul ebx, edx
add eax, ebx
xor ebx, ebx
sar eax, 8
mov byte [esi], al
mov eax, dword [esp + 0x19]
mov bl, byte [esi + 1]
inc esi
and eax, 0xff
imul ebx, edx
imul eax, ecx
add eax, ebx
sar eax, 8
mov byte [esi], al
mov eax, dword [esp + 0x1a]
and eax, 0xff
inc esi
imul eax, ecx
xor ecx, ecx
mov cl, byte [esi]
imul ecx, edx
add eax, ecx
sar eax, 8
mov byte [esi], al
inc esi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
inc ecx
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], eax
jne 0x40e3e1
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
add esi, edx
inc ecx
dec eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], eax
jne 0x40e3a1
jmp 0x40e810
fild dword [esp + 0x58]
test esi, esi
fidiv dword [ebp + 0x14]
fstp dword [esp + 0x74]
fild dword [eax + 0x10]
fidiv dword [ebp + 0x18]
fstp dword [esp + 0x88]
jle 0x40e814
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], esi
mov ecx, dword [esp + 0x24]
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov dword [esp + 0x58], ecx
fild dword [esp + 0x58]
fmul dword [esp + 0x88]
fstp qword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
push esi
push ebx
call fcn.0041ea21
add esp, 8
call fcn.0041e3a0
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0x10]
sub edx, eax
jns 0x40e606
xor ecx, ecx
jmp 0x40e61a
push esi
push ebx
call fcn.0041ea21
add esp, 8
call fcn.0041e3a0
mov ecx, dword [edi + 0x10]
sub ecx, eax
mov dword [esp + 0x2c], ecx
imul ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x28], 0
lea esi, [eax + ecx]
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x40e7ea
mov edx, dword [esp + 0x28]
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x3c]
sub edx, ecx
add edx, eax
sub esp, 8
mov dword [esp + 0x60], edx
fild dword [esp + 0x60]
fmul dword [esp + 0x7c]
fstp qword [esp]
call fcn.0041e952
add esp, 8
call fcn.0041e3a0
mov cl, byte [esp + 0x17]
test cl, cl
je 0x40e690
mov ecx, dword [edi + 0x18c]
mov edx, dword [esp + 0x60]
add ecx, eax
mov cl, byte [ecx + edx]
mov byte [esp + 0x10], cl
jmp 0x40e695
mov byte [esp + 0x10], 0xff
mov edx, dword [esp + 0x10]
xor ebx, ebx
mov bl, byte [edi + 0x178]
and edx, 0xff
inc ebx
mov ecx, dword [edi + 0x28]
imul ebx, edx
sar ebx, 8
test ecx, ecx
mov byte [esp + 0x10], bl
je 0x40e707
mov ecx, dword [esp + 0x2c]
push ecx
push eax
mov ecx, edi
call fcn.0040f380
lea edx, [esp + 0xbc]
push eax
push edx
mov ecx, edi
call fcn.0040f310
mov cl, byte [edi + 0x179]
mov eax, dword [eax]
test cl, cl
mov dword [esp + 0x18], eax
je 0x40e732
mov ebx, dword [esp + 0x1b]
mov ecx, dword [esp + 0x10]
and ebx, 0xff
and ecx, 0xff
inc ebx
imul ebx, ecx
sar ebx, 8
mov byte [esp + 0x10], bl
jmp 0x40e732
mov ecx, dword [edi + 0x30]
lea edx, [eax + eax*2]
imul ecx, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [edi + 0x34]
add ecx, edx
mov dl, byte [ecx + 1]
mov byte [esp + 0x19], dl
mov al, byte [ecx]
inc ecx
mov byte [esp + 0x18], al
mov al, byte [ecx + 1]
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x68]
jne 0x40e748
mov cl, byte [esp + 0x16]
test cl, cl
je 0x40e748
add esi, 3
jmp 0x40e7d5
test bl, bl
jne 0x40e754
add esi, 3
jmp 0x40e7d5
cmp bl, 0xff
jne 0x40e76d
mov cl, byte [esp + 0x18]
mov dl, byte [esp + 0x19]
mov al, byte [esp + 0x1a]
mov byte [esi], cl
inc esi
mov byte [esi], dl
inc esi
jmp 0x40e7d2
mov ecx, dword [esp + 0x10]
and eax, 0xff
not bl
mov byte [esp + 0x64], bl
xor ebx, ebx
mov edx, dword [esp + 0x64]
mov bl, byte [esi]
and ecx, 0xff
and edx, 0xff
imul eax, ecx
imul ebx, edx
add eax, ebx
xor ebx, ebx
sar eax, 8
mov byte [esi], al
mov eax, dword [esp + 0x19]
mov bl, byte [esi + 1]
inc esi
and eax, 0xff
imul ebx, edx
imul eax, ecx
add eax, ebx
sar eax, 8
mov byte [esi], al
mov eax, dword [esp + 0x1a]
and eax, 0xff
inc esi
imul eax, ecx
xor ecx, ecx
mov cl, byte [esi]
imul ecx, edx
add eax, ecx
sar eax, 8
mov byte [esi], al
inc esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x40e645
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x54]
dec edx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x6c]
add ecx, edx
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x54], eax
jne 0x40e5c4
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x90]
push 0
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x48]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov eax, dword [esp + 0x70]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x40e88e
lea ecx, [esp + 0xc0]
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov esi, eax
push 2
push esi
push edi
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
push esi
call ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18