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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x55b5da
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x55b5da
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x55b5da
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x55b5da
mov dl, byte [edi + 0x17e]
test dl, dl
je 0x55b5da
test eax, eax
jge 0x55aa65
mov eax, dword [edi + 0xc]
mov dword [ebp + 0x14], eax
test ecx, ecx
jge 0x55aa6f
mov ecx, dword [edi + 0x10]
mov dword [ebp + 0x18], ecx
mov edx, dword [edi + 0x14c]
mov ecx, dword [edi + 0x1b8]
mov esi, dword [ebp + 0x1c]
cmp edx, 0xffffffff
setne byte [esp + 0x16]
test ecx, ecx
setne byte [esp + 0x17]
test esi, esi
je 0x55aaba
lea edx, [esp + 0xc8]
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
push esi
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push 1
mov esi, eax
push esi
push ebx
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esp + 0xa4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetClipBox]
mov ecx, dword [esp + 0xa8]
mov edx, dword [ebp + 0x10]
cmp ecx, edx
mov eax, ecx
jg 0x55aadb
mov eax, edx
mov esi, dword [esp + 0xb0]
cmp esi, eax
jge 0x55aaec
mov dword [esp + 0x54], esi
jmp 0x55aaf8
cmp ecx, edx
mov dword [esp + 0x54], ecx
jg 0x55aaf8
mov dword [esp + 0x54], edx
mov esi, dword [esp + 0xa4]
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
mov edx, esi
jg 0x55ab0a
mov edx, ecx
mov eax, dword [esp + 0xac]
cmp eax, edx
jge 0x55ab1b
mov dword [esp + 0x50], eax
jmp 0x55ab27
cmp esi, ecx
mov dword [esp + 0x50], esi
jg 0x55ab27
mov dword [esp + 0x50], ecx
mov edx, dword [ebp + 0x14]
add ecx, edx
cmp eax, ecx
mov edx, eax
jl 0x55ab34
mov edx, ecx
mov esi, dword [esp + 0xa4]
cmp esi, edx
jle 0x55ab43
mov eax, esi
jmp 0x55ab49
cmp eax, ecx
jl 0x55ab49
mov eax, ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov esi, dword [esp + 0xb0]
add ecx, edx
cmp esi, ecx
mov edx, esi
jl 0x55ab60
mov edx, ecx
cmp dword [esp + 0xa8], edx
jle 0x55ab72
mov ecx, dword [esp + 0xa8]
jmp 0x55ab7a
cmp esi, ecx
mov dword [esp + 0x5c], esi
jl 0x55ab7e
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
sub eax, edx
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x16]
sub esi, ecx
test al, al
mov dword [esp + 0x3c], esi
jne 0x55aef1
mov al, byte [esp + 0x17]
test al, al
jne 0x55aef1
mov al, byte [edi + 0x17d]
test al, al
jne 0x55aef1
mov edx, dword [ebp + 0x14]
cmp edx, dword [edi + 0xc]
jne 0x55ac02
mov eax, dword [ebp + 0x18]
cmp eax, dword [edi + 0x10]
jne 0x55ac02
push 3
push ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x34]
mov eax, dword [ebp + 0x18]
push 0
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [ebp + 0x14]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
jmp 0x55b5a1
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
push ebx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x78], 0x28
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], esi
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x18
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
lea edx, [esp + 0x2c]
push edx
mov esi, eax
push 0
lea eax, [esp + 0x84]
push eax
push ebx
mov dword [esp + 0x50], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x55aeb6
fild dword [edi + 0xc]
mov eax, dword [esp + 0x18]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
fidiv dword [ebp + 0x14]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x3c]
test eax, eax
fstp dword [esp + 0x68]
fild dword [edi + 0x10]
fidiv dword [ebp + 0x18]
fstp dword [esp + 0x44]
jle 0x55aeb6
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x5c]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
jmp 0x55ad10
fild dword [edi + 0x10]
fild dword [esp + 0x20]
fmul dword [esp + 0x44]
fsubp st(1)
fstp dword [esp + 0x48]
mov esi, dword [esp + 0x48]
push esi
call fcn.0055a930
add esp, 4
call fcn.00595bd0
test eax, eax
jge 0x55ad41
mov dword [esp + 0x28], 0
jmp 0x55ad53
push esi
call fcn.0055a930
add esp, 4
call fcn.00595bd0
mov dword [esp + 0x28], eax
mov ebx, dword [edi + 0x30]
imul ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov ecx, dword [edi + 0x34]
lea esi, [edx + eax]
mov eax, dword [esp + 0x18]
add ebx, ecx
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x55ae8c
mov eax, dword [esp + 0x50]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
lea ebx, [ebx]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
add ecx, edx
mov dword [esp + 0x64], ecx
fild dword [esp + 0x64]
fmul dword [esp + 0x68]
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x34]
push eax
call fcn.0055a930
add esp, 4
call fcn.00595bd0
test eax, eax
jge 0x55adc4
xor eax, eax
jmp 0x55add6
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0055a930
add esp, 4
call fcn.00595bd0
mov cl, byte [ebp + 0x20]
test cl, cl
je 0x55ae18
fld dword [esp + 0x48]
push 0
fsub dword [0x5f2490]
push 5
push 2
sub esp, 8
fstp dword [esp + 4]
lea edx, [esp + 0xb4]
fld dword [esp + 0x48]
mov ecx, edi
fsub dword [0x5f2490]
fstp dword [esp]
push edx
call fcn.0055ffa0
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x55ae5c
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x55ae41
mov ecx, dword [esp + 0x28]
push ecx
push eax
mov ecx, edi
call fcn.0055e6e0
lea edx, [esp + 0x6c]
mov ecx, edi
push eax
push edx
call fcn.0055e670
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x55ae5c
lea ecx, [ebx + eax*2]
mov dl, byte [ecx + eax]
add ecx, eax
mov al, byte [ecx + 1]
inc ecx
mov cl, byte [ecx + 1]
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], al
mov byte [esp + 0x12], cl
mov dl, byte [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov byte [esi], dl
shr eax, 8
inc esi
mov byte [esi], al
mov eax, dword [esp + 0x1c]
shr ecx, 0x10
inc esi
mov byte [esi], cl
mov ecx, dword [esp + 0x18]
inc esi
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x55ad90
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x2c]
dec edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x60]
add ecx, edx
dec eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], eax
jne 0x55ad10
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x5c]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov eax, dword [esp + 0x30]
push eax
jmp 0x55b58c
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
mov byte [esp + 0x14], 0
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
call fcn.0055cf60
mov ecx, edi
call fcn.0055cfa0
xor edx, edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x94], edx
push ebx
mov dword [esp + 0x9c], edx
mov dword [esp + 0x78], 0x28
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], esi
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x18
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
lea edx, [esp + 0x84]
push edx
push ebx
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x50]
push edx
push ebx
push esi
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x2c]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x55b54f
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x14]
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x1f]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xc]
cmp ecx, eax
mov dword [esp + 0x44], eax
jne 0x55b21f
mov eax, dword [edi + 0x10]
cmp dword [ebp + 0x18], eax
jne 0x55b21f
mov edx, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x10]
sub eax, edx
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x55b54f
mov eax, dword [esp + 0x50]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
sub eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0xc]
mov esi, dword [esp + 0x34]
imul eax, edx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
add esi, eax
mov eax, dword [edi + 0x30]
imul eax, edx
mov dword [esp + 0x20], ecx
lea ecx, [ecx + ecx*2]
add eax, ecx
add eax, dword [edi + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x55b1f4
mov edx, eax
mov dword [esp + 0x38], edx
mov al, byte [esp + 0x17]
test al, al
je 0x55b0c4
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x1b8]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov al, byte [eax + ecx]
jmp 0x55b0c6
or al, 0xff
movzx ebx, byte [edi + 0x17c]
movzx edx, al
mov eax, dword [edi + 0x28]
inc ebx
imul ebx, edx
sar ebx, 8
test eax, eax
je 0x55b128
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, edi
call fcn.0055e6e0
movzx eax, al
push eax
lea edx, [esp + 0x70]
push edx
mov ecx, edi
mov dword [esp + 0x78], eax
call fcn.0055e670
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov al, byte [edi + 0x17d]
test al, al
je 0x55b146
mov ecx, dword [esp + 0x10]
shr ecx, 0x18
movzx edx, bl
inc ecx
imul ecx, edx
sar ecx, 8
mov bl, cl
jmp 0x55b146
mov eax, dword [esp + 0x2c]
mov cl, byte [eax]
mov dl, byte [eax + 1]
inc eax
inc eax
mov byte [esp + 0x10], cl
mov cl, byte [eax]
inc eax
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], cl
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x55b157
mov edx, dword [esp + 0x60]
cmp dword [esp + 0x70], edx
jmp 0x55b15f
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x68]
jne 0x55b169
mov al, byte [esp + 0x16]
test al, al
jne 0x55b1d9
test bl, bl
je 0x55b1d9
cmp bl, 0xff
jne 0x55b189
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
inc esi
jmp 0x55b1dc
movzx edx, byte [esi]
mov al, bl
movzx ecx, bl
movzx ebx, byte [esp + 0x10]
not al
imul ebx, ecx
movzx eax, al
imul edx, eax
add edx, ebx
movzx ebx, byte [esp + 0x11]
sar edx, 8
imul ebx, ecx
mov byte [esi], dl
movzx edx, byte [esi + 1]
inc esi
imul edx, eax
add edx, ebx
sar edx, 8
mov byte [esi], dl
movzx edx, byte [esi + 1]
inc esi
imul edx, eax
movzx eax, byte [esp + 0x12]
imul eax, ecx
add edx, eax
sar edx, 8
mov byte [esi], dl
inc esi
jmp 0x55b1dc
add esi, 3
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
inc ecx
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x38], eax
jne 0x55b0a7
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [esp + 0x1c]
inc ecx
dec eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], eax
jne 0x55b063
jmp 0x55b54f
fild dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
test eax, eax
fidiv dword [ebp + 0x14]
fstp dword [esp + 0xb8]
fild dword [edi + 0x10]
fidiv dword [ebp + 0x18]
fstp dword [esp + 0xb4]
jle 0x55b54f
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x3c]
sub eax, ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], edx
fild dword [edi + 0x10]
sub esp, 8
fild dword [esp + 0x40]
fmul dword [esp + 0xbc]
fsubp st(1)
fst dword [esp + 0x24]
fstp qword [esp]
call fcn.00599270
add esp, 8
call fcn.00595bd0
test eax, eax
jge 0x55b292
xor eax, eax
jmp 0x55b2a4
mov eax, dword [esp + 0x1c]
push eax
call fcn.0055a930
add esp, 4
call fcn.00595bd0
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x34]
imul ecx, eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
lea esi, [ecx + edx]
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 0x34]
imul ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
add ecx, edx
test eax, eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x30], 0
jle 0x55b529
mov eax, dword [esp + 0x50]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
jmp 0x55b2f0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
add eax, ecx
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
sub esp, 8
fmul dword [esp + 0xc0]
fst dword [esp + 0x28]
fstp qword [esp]
call fcn.00599270
add esp, 8
call fcn.00595bd0
test eax, eax
jge 0x55b328
xor eax, eax
jmp 0x55b33f
fld dword [esp + 0x20]
sub esp, 8
fstp qword [esp]
call fcn.00599270
add esp, 8
call fcn.00595bd0
mov cl, byte [esp + 0x17]
test cl, cl
mov dword [esp + 0x28], eax
je 0x55b35c
mov edx, dword [edi + 0x1b8]
add edx, eax
mov eax, dword [esp + 0x40]
mov al, byte [edx + eax]
jmp 0x55b35e
or al, 0xff
movzx ebx, byte [edi + 0x17c]
movzx ecx, al
mov eax, dword [edi + 0x28]
inc ebx
imul ebx, ecx
sar ebx, 8
test eax, eax
je 0x55b41a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push edx
push eax
mov ecx, edi
call fcn.0055e6e0
movzx ecx, al
mov al, byte [ebp + 0x20]
test al, al
mov dword [esp + 0x70], ecx
je 0x55b3d4
fld dword [esp + 0x1c]
push 0
fsub dword [0x5f2490]
push 5
push 2
sub esp, 8
fstp dword [esp + 4]
lea edx, [esp + 0xd4]
fld dword [esp + 0x34]
mov ecx, edi
fsub dword [0x5f2490]
fstp dword [esp]
push edx
call fcn.0055ffa0
mov eax, dword [eax]
mov dword [esp + 0x10], eax
jmp 0x55b3fb
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, edi
call fcn.0055e6e0
mov ecx, edi
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.0055e670
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov al, byte [edi + 0x17d]
test al, al
je 0x55b47e
mov edx, dword [esp + 0x10]
shr edx, 0x18
movzx eax, bl
inc edx
imul edx, eax
sar edx, 8
mov bl, dl
jmp 0x55b47e
mov al, byte [ebp + 0x20]
test al, al
je 0x55b45c
fld dword [esp + 0x1c]
push 0
fsub dword [0x5f2490]
push 5
push 2
sub esp, 8
fstp dword [esp + 4]
lea ecx, [esp + 0xd8]
fld dword [esp + 0x34]
fsub dword [0x5f2490]
fstp dword [esp]
push ecx
mov ecx, edi
call fcn.0055ffa0
mov edx, dword [eax]
mov dword [esp + 0x10], edx
jmp 0x55b47e
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x6c]
lea eax, [eax + ecx*2]
add eax, ecx
mov cl, byte [eax]
mov dl, byte [eax + 1]
inc eax
mov al, byte [eax + 1]
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], dl
mov byte [esp + 0x12], al
mov eax, dword [edi + 0x28]
test eax, eax
je 0x55b48f
mov ecx, dword [esp + 0x70]
cmp ecx, dword [esp + 0x60]
jmp 0x55b497
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x68]
jne 0x55b4a1
mov al, byte [esp + 0x16]
test al, al
jne 0x55b511
test bl, bl
je 0x55b511
cmp bl, 0xff
jne 0x55b4c1
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
mov dl, byte [esp + 0x12]
mov byte [esi], al
inc esi
mov byte [esi], cl
inc esi
mov byte [esi], dl
inc esi
jmp 0x55b514
movzx edx, byte [esi]
mov al, bl
movzx ecx, bl
movzx ebx, byte [esp + 0x10]
not al
imul ebx, ecx
movzx eax, al
imul edx, eax
add edx, ebx
movzx ebx, byte [esp + 0x11]
sar edx, 8
imul ebx, ecx
mov byte [esi], dl
movzx edx, byte [esi + 1]
inc esi
imul edx, eax
add edx, ebx
sar edx, 8
mov byte [esi], dl
movzx edx, byte [esi + 1]
inc esi
imul edx, eax
movzx eax, byte [esp + 0x12]
imul eax, ecx
add edx, eax
sar edx, 8
mov byte [esi], dl
inc esi
jmp 0x55b514
add esi, 3
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x55b2f0
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x44]
dec esi
add edx, ecx
dec eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x44], eax
jne 0x55b263
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x48]
push eax
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov edx, dword [esp + 0xa0]
mov esi, dword [esp + 0x48]
push edx
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 eax, dword [ebp + 0x1c]
test eax, eax
je 0x55b5cc
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov ecx, dword [ebp + 8]
push 2
mov esi, eax
push esi
push ecx
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x1c