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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x422b3a
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x422b3a
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x422b3a
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x422b3a
cmp byte [edi + 0x17e], 0
je 0x422b3a
test ecx, ecx
jge 0x422093
mov ecx, dword [edi + 0x10]
mov dword [ebp + 0x14], ecx
test eax, eax
jge 0x42209d
mov eax, dword [edi + 0x14]
mov dword [ebp + 0x18], eax
cmp dword [edi + 0x14c], 0xffffffff
mov esi, dword [ebp + 0x1c]
setne byte [esp + 0x1a]
cmp dword [edi + 0x18c], 0
setne byte [esp + 0x1b]
cmp byte [edi + 0x17d], 0
setne byte [esp + 0x3f]
test esi, esi
je 0x42210f
lea eax, [esp + 0xb0]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
push esi
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov esi, eax
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push esi
push ebx
mov dword [esp + 0x5c], eax
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
mov ecx, dword [esp + 0x50]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
cmp byte [esp + 0x1a], 0
jne 0x4224ab
cmp byte [esp + 0x1b], 0
jne 0x4224ab
cmp byte [esp + 0x3f], 0
jne 0x4224ab
cmp ecx, dword [edi + 0x10]
jne 0x422172
cmp eax, dword [edi + 0x14]
jne 0x422172
push 3
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edx, dword [edi + 8]
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp + 0x14]
push 0
push edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov esi, ebx
jmp 0x422af3
lea ecx, [esp + 0x68]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
mov esi, dword [esp + 0x68]
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
mov edx, esi
jg 0x42218d
mov edx, ecx
mov eax, dword [esp + 0x70]
cmp eax, edx
jge 0x42219b
mov dword [esp + 0x40], eax
jmp 0x4221a7
cmp esi, ecx
mov dword [esp + 0x40], esi
jg 0x4221a7
mov dword [esp + 0x40], ecx
mov edx, dword [ebp + 0x14]
add ecx, edx
cmp eax, ecx
mov edx, eax
jl 0x4221b4
mov edx, ecx
cmp esi, edx
jle 0x4221bc
mov eax, esi
jmp 0x4221c2
cmp eax, ecx
jl 0x4221c2
mov eax, ecx
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x10]
cmp edx, ecx
jg 0x4221cf
mov edx, ecx
mov esi, dword [esp + 0x74]
cmp esi, edx
jge 0x4221dd
mov dword [esp + 0x44], esi
jmp 0x4221ed
mov edx, dword [esp + 0x6c]
cmp edx, ecx
mov dword [esp + 0x44], edx
jg 0x4221ed
mov dword [esp + 0x44], ecx
mov edx, dword [ebp + 0x18]
add ecx, edx
cmp esi, ecx
mov edx, esi
jl 0x4221fa
mov edx, ecx
cmp dword [esp + 0x6c], edx
jle 0x422206
mov esi, dword [esp + 0x6c]
jmp 0x42220c
cmp esi, ecx
jl 0x42220c
mov esi, ecx
sub eax, dword [esp + 0x40]
mov ecx, esi
sub ecx, dword [esp + 0x44]
mov edx, eax
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x80], ecx
mov eax, 1
mov ecx, 0x18
push ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x7c], 0x28
mov dword [esp + 0x80], edx
mov word [esp + 0x88], ax
mov word [esp + 0x8a], cx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x60], eax
push 0
lea eax, [esp + 0x88]
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x5c], eax
je 0x422457
fild dword [edi + 0x10]
mov eax, dword [esp + 0x2c]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
fidiv dword [ebp + 0x14]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x60], eax
fstp dword [esp + 0x38]
fild dword [edi + 0x14]
fidiv dword [ebp + 0x18]
fstp dword [esp + 0x50]
jle 0x422457
sub esi, dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], edx
fild dword [esp + 0x24]
push ecx
fmul dword [esp + 0x54]
fstp dword [esp + 0x5c]
fld dword [esp + 0x5c]
fstp dword [esp]
call fcn.00421f00
add esp, 4
call fcn.00489850
mov ecx, dword [edi + 0x14]
sub ecx, eax
jns 0x422359
mov dword [esp + 0x20], 0
jmp 0x422377
fld dword [esp + 0x58]
push ecx
fstp dword [esp]
call fcn.00421f00
add esp, 4
call fcn.00489850
mov ecx, dword [edi + 0x14]
sub ecx, eax
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
lea esi, [edx + eax]
jle 0x42243c
mov eax, dword [esp + 0x40]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
lea esp, [esp]
mov ecx, dword [esp + 0x64]
add ecx, ebx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
sub esp, 8
fmul dword [esp + 0x40]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp qword [esp]
call fcn.0048b890
fstp dword [esp + 0x1c]
add esp, 8
fld dword [esp + 0x14]
call fcn.00489850
cmp dword [edi + 0x2c], 0
je 0x42240f
mov edx, dword [esp + 0x20]
push edx
push eax
mov ecx, edi
call sym.Player.exe_public:_unsigned_char___thiscall_CxImage::GetPixelIndex_long_int__long_int_
movzx eax, al
push eax
lea ecx, [esp + 0xa8]
push ecx
mov ecx, edi
call sym.Player.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPaletteColor_unsigned_char_
mov edx, dword [eax]
mov dword [esp + 0x34], edx
mov cl, byte [esp + 0x36]
mov dl, byte [esp + 0x35]
mov al, byte [esp + 0x34]
jmp 0x422428
mov ecx, dword [edi + 0x34]
imul ecx, dword [esp + 0x20]
lea eax, [eax + eax*2]
add ecx, eax
add ecx, dword [edi + 0x38]
mov dl, byte [ecx + 1]
mov al, byte [ecx]
inc ecx
mov cl, byte [ecx + 1]
mov byte [esi], al
inc esi
mov byte [esi], dl
inc esi
mov byte [esi], cl
inc ebx
inc esi
cmp ebx, dword [esp + 0x2c]
jl 0x4223a0
mov ecx, dword [esp + 0x60]
add dword [esp + 0x1c], ecx
mov eax, 1
sub dword [esp + 0x24], eax
sub dword [esp + 0x30], eax
jne 0x422327
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
push 0
mov esi, dword [ebp + 8]
lea edx, [esp + 0x7c]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x34]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x60]
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x422af3
lea edx, [esp + 0x68]
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
mov esi, dword [esp + 0x68]
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
mov edx, esi
jg 0x4224c6
mov edx, ecx
mov eax, dword [esp + 0x70]
cmp eax, edx
jge 0x4224d4
mov dword [esp + 0x40], eax
jmp 0x4224e0
cmp esi, ecx
mov dword [esp + 0x40], esi
jg 0x4224e0
mov dword [esp + 0x40], ecx
mov edx, dword [ebp + 0x14]
add ecx, edx
cmp eax, ecx
mov edx, eax
jl 0x4224ed
mov edx, ecx
cmp esi, edx
jle 0x4224f5
mov eax, esi
jmp 0x4224fb
cmp eax, ecx
jl 0x4224fb
mov eax, ecx
mov esi, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x10]
cmp esi, ecx
jg 0x422508
mov esi, ecx
mov edx, dword [esp + 0x74]
cmp edx, esi
jge 0x422516
mov dword [esp + 0x44], edx
jmp 0x422526
mov esi, dword [esp + 0x6c]
cmp esi, ecx
mov dword [esp + 0x44], esi
jg 0x422526
mov dword [esp + 0x44], ecx
mov esi, dword [ebp + 0x18]
add ecx, esi
cmp edx, ecx
mov esi, edx
jl 0x422533
mov esi, ecx
cmp dword [esp + 0x6c], esi
jle 0x42253f
mov ecx, dword [esp + 0x6c]
jmp 0x422547
cmp edx, ecx
mov dword [esp + 0x4c], edx
jl 0x42254b
mov dword [esp + 0x4c], ecx
mov esi, dword [esp + 0x4c]
sub eax, dword [esp + 0x40]
sub esi, dword [esp + 0x44]
lea edx, [esp + 0x64]
push edx
mov ecx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], esi
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
call sym.Player.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetTransColor_void_
xor eax, eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov edx, 0x18
push ebx
mov dword [esp + 0x7c], 0x28
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], esi
mov word [esp + 0x88], cx
mov word [esp + 0x8a], dx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x88]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edx, dword [esp + 0x58]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
push 0xcc0020
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x60]
push ecx
push ebx
push esi
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0x34], 0
je 0x422a9e
mov eax, dword [esp + 0x1c]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, eax
add eax, eax
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x5c], eax
cmp dword [ebp + 0x14], eax
jne 0x42285c
mov eax, dword [edi + 0x14]
cmp dword [ebp + 0x18], eax
jne 0x42285c
sub eax, dword [esp + 0x4c]
add eax, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
test esi, esi
jle 0x422a9e
mov eax, dword [esp + 0x40]
sub eax, dword [ebp + 0xc]
mov ecx, esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x34]
imul eax, edx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
add esi, eax
mov eax, dword [edi + 0x34]
imul eax, edx
mov dword [esp + 0x24], ecx
lea ecx, [ecx + ecx*2]
add eax, ecx
add eax, dword [edi + 0x38]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x30], eax
jle 0x42283c
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], edx
cmp byte [esp + 0x1b], 0
je 0x422723
mov eax, dword [edi + 0x18c]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x54]
mov al, byte [eax + ecx]
jmp 0x422725
or al, 0xff
movzx ebx, byte [edi + 0x17c]
inc ebx
movzx edx, al
imul ebx, edx
sar ebx, 8
cmp dword [edi + 0x2c], 0
je 0x422782
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, edi
call sym.Player.exe_public:_unsigned_char___thiscall_CxImage::GetPixelIndex_long_int__long_int_
movzx edx, al
push edx
lea eax, [esp + 0xac]
push eax
mov ecx, edi
call sym.Player.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPaletteColor_unsigned_char_
cmp byte [edi + 0x17d], 0
mov eax, dword [eax]
mov dword [esp + 0x10], eax
je 0x4227a6
mov ecx, eax
shr ecx, 0x18
movzx edx, bl
inc ecx
imul ecx, edx
sar ecx, 8
mov bl, cl
jmp 0x4227a6
mov eax, dword [esp + 0x30]
movzx ecx, byte [eax]
mov dl, byte [eax + 1]
inc eax
inc eax
mov byte [esp + 0x10], cl
movzx ecx, byte [eax]
inc eax
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], cl
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x64]
jne 0x4227b8
cmp byte [esp + 0x1a], 0
je 0x4227b8
add esi, 3
jmp 0x422829
test bl, bl
jne 0x4227c1
add esi, 3
jmp 0x422829
cmp bl, 0xff
jne 0x4227dc
mov dl, byte [esp + 0x10]
mov al, byte [esp + 0x11]
mov cl, byte [esp + 0x12]
mov byte [esi], dl
inc esi
mov byte [esi], al
inc esi
mov byte [esi], cl
jmp 0x422828
movzx edx, byte [esp + 0x10]
mov al, bl
movzx ecx, bl
movzx ebx, byte [esi]
imul edx, ecx
not al
movzx eax, al
imul ebx, eax
add edx, ebx
sar edx, 8
mov byte [esi], dl
movzx ebx, byte [esi + 1]
movzx edx, byte [esp + 0x11]
imul ebx, eax
inc esi
imul edx, ecx
add edx, ebx
sar edx, 8
mov byte [esi], dl
movzx edx, byte [esp + 0x12]
inc esi
imul edx, ecx
movzx ecx, byte [esi]
imul ecx, eax
add edx, ecx
sar edx, 8
mov byte [esi], dl
inc esi
mov eax, 1
add dword [esp + 0x24], eax
sub dword [esp + 0x38], eax
jne 0x422709
mov edx, dword [esp + 0x50]
add dword [esp + 0x28], edx
mov eax, 1
add dword [esp + 0x20], eax
sub dword [esp + 0x14], eax
jne 0x4226c4
jmp 0x422a9e
fild dword [esp + 0x5c]
fidiv dword [ebp + 0x14]
fstp dword [esp + 0xa8]
fild dword [edi + 0x14]
fidiv dword [ebp + 0x18]
fstp dword [esp + 0x5c]
test esi, esi
jle 0x422a9e
mov eax, dword [esp + 0x4c]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], eax
mov eax, esi
mov dword [esp + 0x38], eax
fild dword [esp + 0x24]
push ecx
fmul dword [esp + 0x60]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.00421f00
add esp, 4
call fcn.00489850
mov ecx, dword [edi + 0x14]
sub ecx, eax
jns 0x4228c1
xor ecx, ecx
jmp 0x4228db
fld dword [esp + 0x14]
push ecx
fstp dword [esp]
call fcn.00421f00
add esp, 4
call fcn.00489850
mov ecx, dword [edi + 0x14]
sub ecx, eax
mov eax, dword [edi + 0x10]
mov edx, dword [esp + 0x30]
imul eax, ecx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], ecx
lea esi, [edx + eax]
mov dword [esp + 0x20], 0
jle 0x422a83
mov eax, dword [esp + 0x40]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
add ecx, edx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
sub esp, 8
fmul dword [esp + 0xb0]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp qword [esp]
call fcn.0048b890
fstp dword [esp + 0x1c]
add esp, 8
fld dword [esp + 0x14]
call fcn.00489850
cmp byte [esp + 0x1b], 0
je 0x422966
mov ecx, dword [edi + 0x18c]
mov edx, dword [esp + 0x54]
add ecx, eax
mov cl, byte [ecx + edx]
jmp 0x422969
or cl, 0xff
movzx ebx, byte [edi + 0x17c]
inc ebx
movzx ecx, cl
imul ebx, ecx
sar ebx, 8
cmp dword [edi + 0x2c], 0
je 0x4229c2
mov edx, dword [esp + 0x28]
push edx
push eax
mov ecx, edi
call sym.Player.exe_public:_unsigned_char___thiscall_CxImage::GetPixelIndex_long_int__long_int_
movzx eax, al
push eax
lea ecx, [esp + 0xb0]
push ecx
mov ecx, edi
call sym.Player.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPaletteColor_unsigned_char_
cmp byte [edi + 0x17d], 0
mov eax, dword [eax]
mov dword [esp + 0x10], eax
je 0x4229ed
mov edx, eax
shr edx, 0x18
movzx ecx, bl
inc edx
imul edx, ecx
sar edx, 8
mov bl, dl
jmp 0x4229ed
mov ecx, dword [edi + 0x34]
imul ecx, dword [esp + 0x28]
lea edx, [eax + eax*2]
add ecx, edx
add ecx, dword [edi + 0x38]
mov dl, byte [ecx + 1]
movzx eax, byte [ecx]
inc ecx
mov byte [esp + 0x10], al
movzx eax, byte [ecx + 1]
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x64]
jne 0x4229ff
cmp byte [esp + 0x1a], 0
je 0x4229ff
add esi, 3
jmp 0x422a70
test bl, bl
jne 0x422a08
add esi, 3
jmp 0x422a70
cmp bl, 0xff
jne 0x422a23
mov cl, byte [esp + 0x10]
mov dl, byte [esp + 0x11]
mov al, byte [esp + 0x12]
mov byte [esi], cl
inc esi
mov byte [esi], dl
inc esi
mov byte [esi], al
jmp 0x422a6f
movzx edx, byte [esp + 0x10]
mov al, bl
movzx ecx, bl
movzx ebx, byte [esi]
imul edx, ecx
not al
movzx eax, al
imul ebx, eax
add edx, ebx
sar edx, 8
mov byte [esi], dl
movzx ebx, byte [esi + 1]
movzx edx, byte [esp + 0x11]
imul ebx, eax
inc esi
imul edx, ecx
add edx, ebx
sar edx, 8
mov byte [esi], dl
movzx edx, byte [esp + 0x12]
inc esi
imul edx, ecx
movzx ecx, byte [esi]
imul ecx, eax
add edx, ecx
sar edx, 8
mov byte [esi], dl
inc esi
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jl 0x422912
mov edx, dword [esp + 0x50]
add dword [esp + 0x30], edx
mov eax, 1
sub dword [esp + 0x24], eax
sub dword [esp + 0x38], eax
jne 0x422895
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x4c]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x64]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0x58]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x1c], 0
je 0x422b2c
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov edi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 2
push edi
push esi
mov ebx, eax
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
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