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

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
mov eax, dword [esi]
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x1c], eax
mov eax, 1
cmp ecx, eax
jl 0x50a7d6
cmp dword [esi + 0x2c], eax
jl 0x50a7d6
mov eax, dword [esi + 0x7c]
push ebx
xor ebx, ebx
cmp eax, ebx
jg 0x508e23
fld qword [0x5d6138]
fstp qword [esi + 0x88]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xb8]
xor edi, edi
cmp ecx, ebx
jbe 0x508e92
lea ecx, [esi + 0xec]
lea ecx, [ecx]
mov edx, dword [ecx]
add edx, dword [0x611af4]
cmp edx, eax
jb 0x508e54
mov edx, dword [ecx - 0x10]
cmp edx, dword [ecx - 0xc]
jl 0x508e63
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0xc], edx
mov dword [ecx], eax
mov dword [ecx + 0xc], 0xffffffff
mov ebx, dword [ecx + 4]
add ebx, dword [0x611af4]
cmp ebx, eax
jb 0x508e75
cmp edx, dword [ecx - 8]
jg 0x508e82
mov dword [ecx - 8], edx
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x78]
inc edx
mov dword [ecx + 0x10], edx
mov edx, dword [esi + 0xb8]
inc edi
add ecx, 0x24
cmp edi, edx
jb 0x508e40
xor ebx, ebx
cmp dword [esi + 0x58], ebx
mov ebp, dword [esp + 0x158]
jne 0x508f51
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
test byte [esp + 0x28], 0x20
mov dword [esi + 0x34], ecx
je 0x508ef5
test byte [esi + 4], 1
mov ecx, dword [esi + 0xb8]
je 0x508edb
mov edx, dword [esi + 0x28]
lea eax, [ecx + edx - 1]
xor edx, edx
div ecx
cmp eax, 1
jg 0x508ed6
mov eax, 1
mov dword [esi + 0x30], eax
jmp 0x508ef8
mov eax, dword [esi + 0x2c]
xor edx, edx
lea eax, [ecx + eax - 1]
div ecx
cmp eax, 1
jg 0x508ef0
mov eax, 1
mov dword [esi + 0x34], eax
jmp 0x508ef8
mov dword [esi + 0x74], ebx
mov al, byte [esp + 0x28]
test al, al
jns 0x508f09
push ebp
push esi
call fcn.00508c50
jmp 0x508f0f
mov dword [esi + 0xd0], ebx
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push esi
call fcn.00507df0
test eax, eax
jne 0x508f51
push 0xff0000
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
push ebx
push ebx
push ebx
add esi, 0x18
push esi
push 2
push ebx
push ebx
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutW]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x140
ret 0x10
mov edx, dword [esi + 0x58]
mov edi, dword [0x611af8]
mov ecx, dword [esi + 0x78]
push edx
push edi
mov dword [esp + 0x44], ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x12c], eax
test byte [esi + 4], 4
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x14], ebx
je 0x508fba
cmp eax, ebx
jbe 0x509007
lea ebx, [esi + 0xf4]
mov edi, edi
fld dword [ebx - 0x18]
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.00505c50
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xb8]
inc eax
add ebx, 0x24
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x508f90
jmp 0x509007
cmp eax, ebx
jbe 0x509007
lea ebx, [esi + 0xf4]
mov eax, dword [ebx - 0x18]
cmp eax, 1
mov dword [esp + 0x50], eax
jne 0x508fd8
mov dword [ebx], 3
jmp 0x508ff1
fild dword [esp + 0x50]
sub esp, 8
mov ecx, esi
fmul qword [esi + 0x88]
fstp qword [esp]
call fcn.00505c50
mov dword [ebx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xb8]
inc eax
add ebx, 0x24
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x508fc4
mov eax, dword [esp + 0x28]
test ah, 2
je 0x509039
mov eax, dword [esi + 0xb8]
xor ecx, ecx
test eax, eax
jbe 0x509039
lea eax, [esi + 0xf8]
mov edx, dword [eax - 4]
cmp edx, dword [eax]
jle 0x50902b
mov dword [eax], edx
mov edx, dword [esi + 0xb8]
inc ecx
add eax, 0x24
cmp ecx, edx
jb 0x509022
mov eax, dword [esp + 0x28]
test ah, 1
je 0x50906b
mov eax, dword [esi + 0xb8]
xor ecx, ecx
test eax, eax
jbe 0x50906b
lea eax, [esi + 0xfc]
mov edx, dword [eax - 8]
cmp edx, dword [eax]
jge 0x50905d
mov dword [eax], edx
mov edx, dword [esi + 0xb8]
inc ecx
add eax, 0x24
cmp ecx, edx
jb 0x509054
mov ebx, dword [esp + 0x28]
and ebx, 8
mov dword [esp + 0x4c], ebx
je 0x5090a0
push 0x6e
call sym.vidcap60.exe__SfGetUIFont_4
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 6
push edi
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 4]
mov eax, edx
shl eax, 0x1f
sar eax, 0x1f
test eax, eax
je 0x5090b5
mov ecx, dword [esi + 0x44]
inc ecx
jmp 0x5090bc
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x40]
dec ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x509cf2
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
mov dword [esp + 0x38], ecx
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
test byte [esp + 0x28], 2
mov dword [esp + 0x34], eax
je 0x5090ff
mov ecx, dword [esi + 0x50]
xor eax, eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x15c]
test ecx, ecx
je 0x509153
or edx, 0x40
mov dword [esi + 4], edx
test byte [esp + 0x28], 0x10
je 0x509153
test ebx, ebx
je 0x509153
xor edx, edx
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], edx
mov edx, dword [esi + 0x44]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x160]
push eax
dec edx
push 1
mov dword [esp + 0xb8], edx
lea edx, [esp + 0xac]
push edx
push edi
push esi
call ecx
mov eax, dword [esi + 0xb8]
mov edx, dword [esi + 0x28]
lea ecx, [eax - 1]
imul ecx, dword [esi + 0x74]
sub edx, ecx
test edx, edx
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
jge 0x509177
fadd qword [0x5d55f0]
test eax, eax
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
jge 0x509189
fadd qword [0x5d55f0]
fdivp st(1)
xor ebx, ebx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
fstp qword [esp + 0x124]
jbe 0x50a7c4
mov eax, dword [esp + 0x28]
mov edx, eax
and edx, 0x10
and eax, 0x80
mov dword [esp + 0x50], edx
mov dword [esp + 0x40], eax
jmp 0x5091d0
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
lea ebx, [ebx]
test eax, eax
mov edx, dword [esp + 0x14]
je 0x509246
lea eax, [edx + edx*8]
mov ebx, dword [esi + eax*4 + 0xf4]
lea ecx, [esi + eax*4]
mov eax, dword [esp + 0x3c]
sub eax, ebx
mov dword [esp + 0x30], ecx
mov ecx, 0
sets cl
dec ecx
and ecx, eax
test edx, edx
mov eax, dword [esi + 0x44]
lea ebx, [eax + ecx]
jne 0x50921e
mov ecx, dword [esi + 0xd0]
test ecx, ecx
jg 0x509212
mov ecx, dword [esp + 0x10]
add ecx, dword [esi + 0xd4]
mov dword [esp + 0x10], ecx
jmp 0x50922e
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0xd8]
add edx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
jmp 0x5092eb
add ebx, ecx
inc edx
test edx, edx
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
jge 0x50925f
fadd qword [0x5d55f0]
fmul qword [esp + 0x124]
fadd qword [0x5eb9e0]
call fcn.005c4484
sub eax, ebx
cmp eax, 1
jge 0x50927d
mov eax, 1
mov ecx, dword [esi + 0xb8]
mov edx, dword [esp + 0x14]
dec ecx
cmp edx, ecx
mov dword [esp + 0x1c], eax
jae 0x50929b
mov ecx, dword [esi + 0x74]
add ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x5092a8
mov eax, dword [esi + 0x28]
sub eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*8]
mov ebx, dword [esi + edx*4 + 0xf4]
mov eax, dword [esp + 0x3c]
lea ecx, [esi + edx*4]
mov dword [esp + 0x30], ecx
sub eax, ebx
mov edx, dword [esp + 0x10]
mov ecx, 0
sets cl
dec ecx
and ecx, eax
mov eax, dword [esi + 0x44]
lea ebx, [eax + ecx]
mov ecx, dword [esp + 0x28]
and cl, 0x20
neg cl
sbb ecx, ecx
not ecx
and ecx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 4]
test ch, 4
jne 0x509457
test ebx, ebx
jle 0x509333
mov edx, dword [esp + 0x38]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x18]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [esp + 0x28]
push edx
push edi
mov edx, ebx
sub edx, eax
push edx
mov edx, dword [esi + 0x1c]
add edx, eax
mov eax, dword [esi + 0x18]
push ecx
push edx
add eax, dword [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
cmp ebx, dword [esi + 0x2c]
jge 0x50935d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
push 0x42
push 1
add ecx, 0xfffffffe
push ecx
mov ecx, dword [esp + 0x1c]
add edx, ebx
push edx
lea edx, [eax + ecx + 1]
push edx
push ebp
call dword [sym.imp.GDI32.dll_PatBlt]
mov eax, dword [esi + 0x2c]
inc ebx
sub eax, ebx
test eax, eax
jle 0x50939d
mov ecx, dword [esp + 0x48]
push 0xcc0020
lea edx, [ebx + ecx]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x4c]
add ecx, edx
mov edx, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x1c]
push edi
push eax
mov eax, dword [esp + 0x34]
push eax
add ecx, ebx
mov ebx, dword [esp + 0x28]
push ecx
add edx, ebx
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xf8]
cmp ecx, dword [eax + 0xf4]
jle 0x5093f1
mov eax, dword [esp + 0x3c]
sub eax, ecx
js 0x5093f1
mov edx, dword [esi + 0x44]
mov ecx, dword [esp + 0x48]
add eax, edx
push 0xcc0020
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x4c]
add ecx, edx
mov edx, dword [esi + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push edi
push 1
add edx, eax
mov eax, dword [esi + 0x18]
push ecx
push edx
add eax, dword [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
lea ecx, [eax + eax*8 + 0x3f]
mov ecx, dword [esi + ecx*4]
cmp ecx, dword [edx + 0xf4]
jge 0x509569
mov eax, dword [esp + 0x3c]
sub eax, ecx
js 0x509569
mov edx, dword [esi + 0x44]
mov ecx, dword [esp + 0x38]
add eax, edx
push 0xcc0020
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3c]
add ecx, edx
mov edx, dword [esi + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push edi
push 1
add edx, eax
mov eax, dword [esi + 0x18]
push ecx
push edx
add eax, dword [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x509569
mov ecx, dword [esi + 0x18]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add ecx, ebx
mov dword [esp + 0x84], ecx
add ecx, edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esi + 0x1c]
push 0xf
add ecx, eax
push 2
lea eax, [esp + 0x8c]
push eax
push ebp
mov dword [esp + 0x98], ecx
mov dword [esp + 0xa0], edx
call dword [sym.imp.USER32.dll_DrawEdge]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x8c]
mov ebx, dword [esp + 0x88]
mov edx, dword [esp + 0x90]
inc ecx
dec eax
inc ebx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x15c]
dec edx
test eax, eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x90], edx
je 0x5094fc
mov ecx, dword [esp + 0x160]
push ecx
push 1
lea edx, [esp + 0x8c]
push edx
push ebp
push esi
call eax
jmp 0x509569
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
push 0
push 0
push 0
mov dword [esp + 0x140], ecx
lea ecx, [esp + 0x13c]
push ecx
push 2
mov ebx, eax
mov eax, dword [esp + 0x98]
push 0
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0xa8]
push 0
push ebp
mov dword [esp + 0x158], edx
mov dword [esp + 0x15c], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x50965a
mov ecx, dword [esi + 4]
test ch, 1
je 0x50973d
mov eax, dword [esi + 0xb8]
cmp eax, 1
jbe 0x50973d
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x50973d
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x50965a
cmp eax, 1
mov edx, dword [esi + 0xe8]
jbe 0x5095d6
mov ecx, eax
dec ecx
lea ebx, [esi + 0x10c]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx]
cmp edx, ecx
jg 0x5095c8
mov edx, ecx
mov ecx, dword [esp + 0x24]
add ebx, 0x24
dec ecx
mov dword [esp + 0x24], ecx
jne 0x5095c0
mov ebx, dword [esi + 0x84]
xor ecx, ecx
cmp edx, ebx
mov ebx, dword [esp + 0x34]
setle cl
dec ecx
and ecx, ebx
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x5096c5
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0xe8]
push ecx
xor ebx, ebx
mov dword [esp + 0x14c], edx
mov dword [esp + 0x150], eax
push edi
lea eax, [esp + 0x148]
mov edx, esi
mov dword [esp + 0x148], ebx
mov dword [esp + 0x14c], ebx
call fcn.00508900
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x1c]
push 0xcc0020
push ebx
push ebx
push edi
dec edx
push edx
push ecx
push eax
mov eax, dword [esi + 0x20]
sub eax, ecx
add eax, dword [esi + 0x18]
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [esp + 0x15c]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x509cd6
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x50993e
mov ecx, dword [esi + 0xd0]
test ecx, ecx
jle 0x50993e
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
add edx, dword [esi + 0x44]
mov dword [esp + 0x54], eax
add eax, ecx
test ebx, ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x58], edx
mov dword [esp + 0x60], eax
je 0x5098d7
mov ecx, dword [esp + 0x160]
push ecx
push 1
lea edx, [esp + 0x5c]
push edx
push ebp
push esi
call ebx
jmp 0x50993e
imul eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
add eax, ecx
add ebx, ecx
add eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x44]
push edx
mov dword [esp + 0xf0], eax
dec ecx
push edi
lea eax, [esp + 0xec]
mov edx, esi
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], 0
mov dword [esp + 0xf8], ecx
call fcn.00508900
mov eax, dword [esi + 0xb8]
imul eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x44]
mov ecx, dword [esi + 0x1c]
push 0xcc0020
push 0
push ebx
mov ebx, dword [esp + 0x1c]
push edi
push edx
mov edx, dword [esi + 0x18]
push eax
push ecx
add edx, ebx
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x509cd6
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5097ff
mov eax, dword [esi + 0x60]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x15c]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
mov dword [esp + 0x24], eax
xor eax, eax
test ebx, ebx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
je 0x5097a6
mov eax, dword [esp + 0x160]
mov edx, dword [esi + 4]
push eax
push 1
lea ecx, [esp + 0xcc]
push ecx
push edi
or edx, 0x40
push esi
mov dword [esi + 4], edx
call ebx
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xe8]
push eax
push edi
lea eax, [esp + 0xcc]
mov edx, esi
call fcn.00508900
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x1c]
push 0xcc0020
push 0
push 0
push edi
dec ecx
push ecx
mov ecx, dword [esi + 0x18]
push edx
mov edx, dword [esp + 0x28]
push eax
sub ecx, dword [esi + 0xd0]
add ecx, edx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x24]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x509661
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0xe8]
mov eax, dword [esi + 0x84]
xor ebx, ebx
cmp edx, eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
setle bl
dec ebx
and ebx, edx
test eax, eax
je 0x5098a7
mov eax, dword [esi + 0xd0]
mov edx, ebx
sub edx, eax
add edx, dword [esp + 0x18]
lea eax, [ebx + eax*2]
mov dword [esp + 0xd4], edx
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x44]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x15c]
dec edx
test eax, eax
mov dword [esp + 0xd8], 0
mov dword [esp + 0xe0], edx
je 0x50988d
or ecx, 0x40
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x160]
push ecx
push 1
lea edx, [esp + 0xdc]
push edx
push edi
push esi
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xe8]
push ecx
push edi
lea eax, [esp + 0xdc]
mov edx, esi
call fcn.00508900
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x20]
push 0xcc0020
push 0
add ebx, edx
mov edx, dword [esi + 0x1c]
push ebx
push edi
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
add eax, dword [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x509cd6
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push 0
push 0
push 0
mov dword [esp + 0x104], ecx
lea ecx, [esp + 0x100]
push ecx
push 2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
push 0
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x78]
push 0
push ebp
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x24]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esi + 0xb8]
mov ecx, dword [esp + 0x14]
dec eax
cmp eax, ecx
jne 0x509a17
mov eax, dword [esi + 0xd0]
test eax, eax
jle 0x509a17
mov edx, dword [esi + 0xd8]
imul edx, ecx
add edx, dword [esi + 0xd4]
add edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
add edx, eax
add edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
add eax, ecx
test ebx, ebx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x64], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
je 0x5099ad
mov eax, dword [esp + 0x160]
push eax
push 1
lea ecx, [esp + 0x6c]
push ecx
push ebp
push esi
call ebx
jmp 0x509a17
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push 0
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
push 0
mov dword [esp + 0x124], eax
lea eax, [esp + 0x120]
push eax
push 2
push 0
mov dword [esp + 0x12c], edx
mov edx, dword [esp + 0x88]
push 0
push ebp
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x140], edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x24]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esi + 0xb8]
mov eax, dword [esp + 0x14]
dec edx
cmp eax, edx
jae 0x509cd6
mov eax, dword [esp + 0x28]
test ah, 4
je 0x509c0f
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x509c0f
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x509b13
mov eax, dword [esi + 0x38]
lea ecx, [eax + eax]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x160]
push ecx
push 1
mov dword [esp + 0x84], edx
lea edx, [esp + 0x7c]
mov dword [esp + 0x88], eax
mov eax, dword [esi + 4]
push edx
push edi
or eax, 0x40
push esi
mov dword [esp + 0x8c], 0
mov dword [esi + 4], eax
call ebx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push 0x8800c6
push 0
push 0
push edi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x88]
sub edx, ecx
push edx
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x44]
push 0xcc0020
push 0
lea ebx, [eax + eax]
push ebx
mov ebx, dword [esi + 0x24]
push edi
sub ebx, ecx
sub ebx, edx
push ebx
mov ebx, dword [esp + 0x34]
push eax
mov eax, dword [esi + 0x18]
add ecx, edx
mov edx, dword [esp + 0x28]
add eax, ebx
push ecx
add eax, edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x509cd6
mov ebx, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
lea ecx, [ebx + ebx]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esi + 4]
and ecx, 0xffffffbf
push 0xf
lea ebx, [ebx + ebx*2]
mov dword [esp + 0xb4], edx
mov dword [esi + 4], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0xb0]
push 0
push 0
push 0
lea edx, [esp + 0x110]
push edx
push 2
push 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xbc]
push 0
push edi
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x24]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xb0]
push 0x8800c6
push 0
push 0
push edi
push ecx
sub ebx, eax
push ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push 0
push eax
push edi
call ebx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x1c]
push 0xcc0020
push 0
lea edx, [eax + eax]
push edx
mov edx, dword [esi + 0x24]
sub edx, ecx
mov ecx, dword [esi + 0x44]
push edi
sub edx, ecx
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esi + 0x18]
add eax, ecx
add eax, edx
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x509cd6
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx]
add edx, dword [esp + 0x10]
mov dword [esp + 0x94], edx
mov edx, dword [esi + 0x1c]
add edx, dword [esi + 0x44]
mov dword [esp + 0x98], edx
mov edx, dword [esi + 0x38]
add edx, eax
mov eax, dword [esi + 0x24]
add edx, ecx
add edx, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], eax
je 0x509c69
mov ecx, dword [esp + 0x160]
push ecx
push 1
lea edx, [esp + 0x9c]
push edx
push ebp
push esi
call ebx
jmp 0x509cd6
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
push 0
push 0
push 0
mov dword [esp + 0xc4], ecx
lea ecx, [esp + 0xc0]
push ecx
push 2
mov ebx, eax
mov eax, dword [esp + 0xa8]
push 0
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xb8]
push 0
push ebp
mov dword [esp + 0xdc], edx
mov dword [esp + 0xe0], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xb8]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x5091be
jmp 0x50a7c4
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
mov dword [esp + 0x34], edx
mov dl, byte [esp + 0x28]
mov dword [esp + 0x38], eax
xor eax, eax
test dl, 2
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
je 0x509d29
mov edx, dword [esi + 0x50]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x54]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xb8]
mov ebx, dword [esi + 0x2c]
lea edx, [eax - 1]
imul edx, dword [esi + 0x74]
sub ebx, edx
test ebx, ebx
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
jge 0x509d4d
fadd qword [0x5d55f0]
test eax, eax
mov dword [esp + 0x2c], eax
fild dword [esp + 0x2c]
jge 0x509d5f
fadd qword [0x5d55f0]
fdivp st(1)
mov eax, dword [esp + 0x15c]
mov ebx, dword [esp + 0x28]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], edx
fstp qword [esp + 0x124]
je 0x509dd2
test bl, 0x10
je 0x509dd2
cmp dword [esp + 0x4c], edx
je 0x509dd2
lea edx, [ecx + 1]
mov dword [esp + 0xb4], edx
mov edx, dword [esi + 0x40]
lea ecx, [edx + ecx + 1]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x160]
push ecx
push 1
mov dword [esp + 0xc8], edx
lea edx, [esp + 0xbc]
push edx
push edi
push esi
mov dword [esp + 0xcc], 0
call eax
xor edx, edx
cmp dword [esi + 0xb8], edx
mov dword [esp + 0x14], edx
jbe 0x50a7c4
mov eax, ebx
and eax, 0x10
mov dword [esp + 0x50], eax
mov eax, ebx
and eax, 0x80
mov dword [esp + 0x40], eax
jmp 0x509e00
mov eax, dword [esp + 0x40]
test eax, eax
je 0x509e8b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x509e2e
mov eax, dword [esi + 0xd0]
test eax, eax
jg 0x509e22
mov eax, dword [esp + 0x10]
add eax, dword [esi + 0xd4]
mov dword [esp + 0x10], eax
jmp 0x509e3e
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0xd8]
add ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0x34]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*8]
mov ebx, dword [esi + ecx*4 + 0xf4]
lea eax, [esi + ecx*4]
sub ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
add ebx, ecx
mov dword [esp + 0x30], eax
jns 0x509e75
xor ebx, ebx
mov dword [esp + 0x20], ebx
jmp 0x509f41
lea eax, [ecx + 1]
cmp ebx, eax
jle 0x509e7e
mov ebx, eax
mov dword [esp + 0x20], 0
jmp 0x509f41
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
add ebx, eax
inc edx
test edx, edx
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
jge 0x509eb0
fadd qword [0x5d55f0]
fmul qword [esp + 0x124]
fadd qword [0x5eb9e0]
call fcn.005c4484
sub eax, ebx
cmp eax, 1
jge 0x509ece
mov eax, 1
mov ecx, dword [esi + 0xb8]
mov edx, dword [esp + 0x14]
dec ecx
cmp edx, ecx
mov dword [esp + 0x1c], eax
jae 0x509eec
mov ecx, dword [esi + 0x74]
add ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x509ef9
mov eax, dword [esi + 0x2c]
sub eax, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
lea edx, [eax + eax*8]
mov ebx, dword [esi + edx*4 + 0xf4]
lea eax, [esi + edx*4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
sub ebx, edx
add ebx, eax
jns 0x509f20
xor ebx, ebx
jmp 0x509f27
inc eax
cmp ebx, eax
jle 0x509f27
mov ebx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
and al, 0x20
neg al
sbb eax, eax
not eax
and eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
cmp ebx, ecx
jge 0x509fea
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
push 0xcc0020
add ecx, edx
mov edx, dword [esp + 0x28]
push ecx
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push edi
push edx
mov edx, dword [esi + 0x18]
sub eax, ebx
push eax
add ecx, dword [esp + 0x28]
push ecx
add edx, ebx
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
cmp ebx, 1
jl 0x509fea
cmp byte [esi], 0
push 0x42
jns 0x509fad
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x14]
add eax, 0xfffffffe
push eax
lea eax, [ecx + edx + 1]
mov ecx, dword [esi + 0x18]
push 1
push eax
add ecx, ebx
push ecx
jmp 0x509fe3
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xb8]
lea edx, [eax + 1]
sub edx, ecx
mov ecx, dword [esp + 0x20]
neg edx
sbb edx, edx
inc edx
sub ecx, edx
xor edx, edx
test eax, eax
mov eax, dword [esi + 0x1c]
sete dl
push ecx
mov ecx, dword [esp + 0x18]
push 1
add edx, eax
mov eax, dword [esi + 0x18]
add edx, ecx
push edx
add eax, ebx
push eax
push ebp
call dword [sym.imp.GDI32.dll_PatBlt]
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
jge 0x509ff4
mov ebx, ecx
test ebx, ebx
jle 0x50a02d
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
push 0xcc0020
add ecx, edx
mov edx, dword [esi + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push edi
push ecx
push ebx
add edx, eax
mov eax, dword [esi + 0x18]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xf8]
cmp eax, dword [edx + 0xf4]
jle 0x50a08d
sub eax, dword [esp + 0x3c]
add eax, ecx
cmp eax, ecx
jge 0x50a08d
cmp eax, 1
jl 0x50a08d
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
push 0xcc0020
add ecx, edx
push ecx
mov ecx, dword [esp + 0x4c]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esi + 0x1c]
push edi
push ecx
mov ecx, dword [esi + 0x18]
push 1
add edx, ebx
push edx
add ecx, eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov ebx, dword [edx + 0xf4]
lea eax, [eax + eax*8 + 0x3f]
mov eax, dword [esi + eax*4]
cmp eax, ebx
jge 0x50a0e8
sub eax, dword [esp + 0x3c]
add eax, ecx
cmp eax, ecx
jge 0x50a0e8
cmp eax, 1
jl 0x50a0e8
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
push 0xcc0020
add ecx, edx
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esi + 0x1c]
push edi
push ecx
mov ecx, dword [esi + 0x18]
push 1
add edx, ebx
push edx
add ecx, eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x50a1e3
mov eax, dword [esi + 4]
test ah, 1
mov dword [esp + 0x2c], eax
je 0x50a2e2
mov eax, dword [esi + 0xb8]
cmp eax, 1
jbe 0x50a2e2
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x50a2e2
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x50a1e3
cmp eax, 1
mov ecx, dword [esi + 0xe8]
jbe 0x50a14e
mov ebx, eax
lea edx, [esi + 0x10c]
dec ebx
nop
mov eax, dword [edx]
cmp ecx, eax
jg 0x50a148
mov ecx, eax
add edx, 0x24
dec ebx
jne 0x50a140
mov ebx, dword [esi + 0x84]
mov edx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
mov ebx, dword [esp + 0x38]
setle al
add edx, 2
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x20]
push ecx
push edi
dec eax
and eax, ebx
mov ebx, dword [esi + 0x2c]
add edx, eax
mov dword [esp + 0x24], edx
sub ebx, 2
inc edx
mov dword [esp + 0xc0], edx
mov edx, dword [esi + 0x40]
add edx, dword [esp + 0x20]
add eax, ebx
mov dword [esp + 0xc4], edx
add eax, dword [esp + 0x28]
mov dword [esp + 0xc8], eax
lea eax, [esp + 0xbc]
mov edx, esi
call fcn.00508900
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x40]
push 0xcc0020
push ecx
mov ecx, dword [esi + 0x18]
inc eax
push eax
mov eax, dword [esi + 0x1c]
push edi
push ebx
mov ebx, dword [esp + 0x2c]
inc edx
push edx
add eax, dword [esp + 0x28]
push eax
add ecx, ebx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x50a7ad
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x50a257
mov ecx, dword [esi + 0xd0]
test ecx, ecx
jle 0x50a257
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x40]
mov dword [esp + 0x98], eax
add eax, ecx
mov dword [esp + 0x94], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x15c]
sub edx, ebx
test eax, eax
mov dword [esp + 0x9c], edx
je 0x50a480
mov eax, dword [esp + 0x160]
push eax
push 1
lea ecx, [esp + 0x9c]
push ecx
push ebp
push esi
call dword [esp + 0x170]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esi + 0xb8]
mov ecx, dword [esp + 0x14]
dec edx
cmp edx, ecx
jne 0x50a55b
mov eax, dword [esi + 0xd0]
test eax, eax
jle 0x50a55b
mov edx, dword [esi + 0x18]
mov dword [esp + 0x74], edx
mov edx, dword [esi + 0xd8]
imul edx, ecx
add edx, dword [esi + 0x1c]
add edx, dword [esi + 0xd4]
add edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x40]
add edx, eax
mov eax, dword [esi + 0x20]
sub eax, ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x15c]
test eax, eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], ecx
je 0x50a4f6
mov edx, dword [esp + 0x160]
push edx
push 1
lea eax, [esp + 0x7c]
push eax
push ebp
push esi
call dword [esp + 0x170]
jmp 0x50a55b
mov eax, dword [esp + 0x40]
test eax, eax
je 0x50a39e
mov edx, dword [esi + 0x60]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x44]
mov ebx, eax
mov eax, dword [esi + 0x40]
xor ecx, ecx
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x15c]
cmp eax, ecx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb0], edx
je 0x50a344
or dword [esi + 4], 0x40
mov ecx, dword [esp + 0x160]
push ecx
push 1
lea edx, [esp + 0xac]
push edx
push edi
push esi
call eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xe8]
push ecx
push edi
lea eax, [esp + 0xac]
mov edx, esi
call fcn.00508900
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x1c]
push 0xcc0020
push 0
push 0
push edi
push edx
mov edx, dword [esi + 0xd0]
push eax
mov eax, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [esi + 0x18]
add ecx, eax
push ecx
add edx, dword [esp + 0x34]
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x50a1e3
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xe8]
mov eax, dword [esi + 0x84]
xor ebx, ebx
cmp ecx, eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
setle bl
dec ebx
and ebx, ecx
test eax, eax
je 0x50a448
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea edx, [ecx + 1]
mov dword [esp + 0xd4], edx
mov edx, dword [esi + 0x40]
add eax, ebx
lea ecx, [edx + ecx + 1]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xd8], eax
add eax, edx
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x15c]
test eax, eax
mov dword [esp + 0xdc], ecx
je 0x50a42e
mov eax, dword [esp + 0x2c]
or eax, 0x40
mov dword [esi + 4], eax
mov eax, dword [esp + 0x160]
push eax
push 1
lea ecx, [esp + 0xdc]
push ecx
push edi
push esi
call dword [esp + 0x170]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xe8]
push eax
push edi
lea eax, [esp + 0xdc]
mov edx, esi
call fcn.00508900
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
push 0xcc0020
add ebx, ecx
mov ecx, dword [esi + 0x40]
push ebx
mov ebx, dword [esp + 0x18]
push eax
push edi
push edx
mov edx, dword [esi + 0x1c]
inc ecx
push ecx
mov ecx, dword [esi + 0x18]
add edx, ebx
push edx
add ecx, eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x50a7ad
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push eax
push ebp
call ebx
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x9c]
push 0
push 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xa0]
push 0
mov dword [esp + 0x114], eax
lea eax, [esp + 0x110]
push eax
push 2
push 0
mov dword [esp + 0x11c], edx
mov edx, dword [esp + 0xb8]
push 0
push ebp
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x2c]
push ecx
push ebp
call ebx
jmp 0x50a25d
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call ebx
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
push 0
push 0
push 0
mov dword [esp + 0x124], edx
lea edx, [esp + 0x120]
push edx
push 2
push 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x12c], ecx
mov ecx, dword [esp + 0x98]
push 0
push ebp
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x2c]
push eax
push ebp
call ebx
mov ecx, dword [esi + 0xb8]
mov eax, dword [esp + 0x14]
dec ecx
cmp eax, ecx
jae 0x50a7ad
mov eax, dword [esp + 0x28]
test ah, 4
je 0x50a6f3
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x50a6f3
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x15c]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x50a600
mov eax, dword [esi + 0x3c]
lea edx, [eax + eax]
lea eax, [eax + eax*2]
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x70], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x160]
push edx
or eax, 0x40
push 1
mov dword [esi + 4], eax
lea eax, [esp + 0x6c]
push eax
push edi
push esi
mov dword [esp + 0x78], 0
call ecx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push 0x8800c6
push 0
push 0
push edi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x78]
sub edx, ecx
push edx
push eax
push ecx
jmp 0x50a6ab
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
lea eax, [ebx + ebx]
mov dword [esp + 0xc8], eax
mov eax, dword [esi + 4]
and eax, 0xffffffbf
push 0xf
mov dword [esp + 0xd0], ecx
lea ebx, [ebx + ebx*2]
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0xc8]
push 0
push 0
push 0
lea ecx, [esp + 0x100]
push ecx
push 2
push 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xe4]
push 0
push edi
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], edx
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x2c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
push 0x8800c6
push 0
push 0
push edi
sub ebx, eax
push ebx
push ecx
push eax
push 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push edi
call ebx
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x18]
push 0xcc0020
lea edx, [eax + eax]
push edx
mov edx, dword [esi + 0x40]
push 0
push edi
push eax
mov eax, dword [esi + 0x20]
sub eax, edx
mov edx, dword [esi + 0x1c]
sub eax, ecx
push eax
add edx, dword [esp + 0x3c]
add edx, dword [esp + 0x28]
push edx
push ecx
push ebp
call ebx
mov eax, dword [esp + 0x1c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x50a7ad
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x24]
lea edx, [eax + ecx]
add edx, dword [esp + 0x10]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x20]
sub edx, dword [esi + 0x40]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x3c]
add edx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
lea ecx, [edx + eax + 1]
mov eax, dword [esp + 0x15c]
test eax, eax
mov dword [esp + 0x60], ecx
je 0x50a74e
mov edx, dword [esp + 0x160]
push edx
push 1
lea eax, [esp + 0x5c]
push eax
push ebp
push esi
call dword [esp + 0x170]
jmp 0x50a7ad
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call ebx
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push 0
push 0
push 0
mov dword [esp + 0xf4], edx
lea edx, [esp + 0xf0]
push edx
push 2
push 0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xfc], ecx
mov ecx, dword [esp + 0x78]
push 0
push ebp
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x2c]
push eax
push ebp
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xb8]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x509e00
mov ecx, dword [esp + 0x12c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x140
ret 0x10