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

Disassembly:
sub esp, 0x130
push edi
mov edi, dword [esp + 0x138]
mov eax, dword [edi]
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x20], eax
mov eax, 1
cmp ecx, eax
jl 0x504b86
cmp dword [edi + 0x2c], eax
jl 0x504b86
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [edi + 0xbc]
xor esi, esi
test eax, eax
jbe 0x5033e6
mov ebp, dword [0x611ae0]
lea ecx, [edi + 0x100]
or ebx, 0xffffffff
fld dword [ecx - 0x10]
fcomp dword [ecx]
fnstsw ax
test ah, 5
jp 0x503317
mov eax, dword [ecx + 0xc]
add eax, dword [edi + 0xe8]
cmp eax, edx
jbe 0x503317
mov eax, dword [ecx]
mov dword [ecx - 0x10], eax
jmp 0x50338c
fld dword [edi + 0xec]
fcomp qword [0x5d8c90]
fnstsw ax
test ah, 0x41
jne 0x503384
mov eax, edx
sub eax, dword [edi + 0xe8]
sub eax, dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0xd4], eax
fild dword [esp + 0xd4]
jge 0x50334d
fadd dword [0x5eab28]
fmul dword [edi + 0xec]
fsubr dword [ecx]
fld dword [edi + 0x74]
fsub dword [0x5e971c]
fstp dword [esp + 0x14]
fcom dword [esp + 0x14]
fnstsw ax
test ah, 0x41
je 0x503373
fstp st(0)
fld dword [esp + 0x14]
fcom dword [ecx - 0x10]
fnstsw ax
test ah, 0x41
jne 0x503382
fstp dword [ecx - 0x10]
jmp 0x50338c
fstp st(0)
mov eax, dword [ecx - 0x10]
mov dword [ecx + 0xc], edx
mov dword [ecx], eax
mov eax, dword [ecx + 4]
add eax, ebp
cmp eax, edx
jb 0x5033a2
fld dword [ecx - 0x10]
fcomp dword [ecx - 0xc]
fnstsw ax
test ah, 1
jne 0x5033ae
mov eax, dword [ecx - 0x10]
mov dword [ecx - 0xc], eax
mov dword [ecx + 4], edx
mov dword [ecx + 0x14], ebx
mov eax, dword [ecx + 8]
add eax, ebp
cmp eax, edx
jb 0x5033c4
fld dword [ecx - 0x10]
fcomp dword [ecx - 8]
fnstsw ax
test ah, 0x41
jp 0x5033d4
mov eax, dword [ecx - 0x10]
mov dword [ecx - 8], eax
mov dword [ecx + 8], edx
mov eax, dword [edi + 0x70]
inc eax
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0xbc]
inc esi
add ecx, 0x2c
cmp esi, eax
jb 0x5032f7
mov eax, dword [edi + 0x60]
test eax, eax
mov ebp, dword [esp + 0x148]
jne 0x5034ac
mov eax, dword [esp + 0x2c]
test al, al
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
jns 0x50344a
test byte [edi + 4], 1
mov ecx, dword [edi + 0xbc]
je 0x503432
mov eax, dword [edi + 0x28]
xor edx, edx
lea eax, [ecx + eax - 1]
div ecx
cmp eax, 1
jg 0x50342d
mov eax, 1
mov dword [edi + 0x30], eax
jmp 0x50344a
mov edx, dword [edi + 0x2c]
lea eax, [ecx + edx - 1]
xor edx, edx
div ecx
cmp eax, 1
jg 0x503447
mov eax, 1
mov dword [edi + 0x34], eax
mov esi, dword [esp + 0x2c]
test esi, 0x100
je 0x50345f
push ebp
push edi
call fcn.00503100
jmp 0x503469
mov dword [edi + 0xdc], 0
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
push eax
push ecx
push esi
push edi
call fcn.005024d0
test eax, eax
jne 0x5034ac
push 0xff0000
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0
push 0
push 0
add edi, 0x18
push edi
push 2
push 0
push 0
push ebp
call dword [sym.imp.GDI32.dll_ExtTextOutW]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x130
ret 0x10
mov eax, dword [edi + 0x60]
mov esi, dword [0x611ae4]
mov edx, dword [edi + 0x70]
push eax
push esi
mov dword [esp + 0x38], edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xd4], eax
mov eax, dword [edi + 0xbc]
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x503504
lea ebx, [edi + 0x110]
mov ecx, dword [ebx - 0x20]
push ecx
call fcn.00501120
mov dword [ebx], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0xbc]
inc eax
add ebx, 0x2c
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x5034e3
mov ebx, dword [esp + 0x2c]
test bh, 4
je 0x503537
mov eax, dword [edi + 0xbc]
xor ecx, ecx
test eax, eax
jbe 0x503537
lea eax, [edi + 0x114]
nop
mov edx, dword [eax - 4]
cmp edx, dword [eax]
jle 0x503529
mov dword [eax], edx
mov edx, dword [edi + 0xbc]
inc ecx
add eax, 0x2c
cmp ecx, edx
jb 0x503520
test bh, 2
je 0x503567
mov eax, dword [edi + 0xbc]
xor ecx, ecx
test eax, eax
jbe 0x503567
lea eax, [edi + 0x118]
mov edi, edi
mov edx, dword [eax - 8]
cmp edx, dword [eax]
jge 0x503559
mov dword [eax], edx
mov edx, dword [edi + 0xbc]
inc ecx
add eax, 0x2c
cmp ecx, edx
jb 0x503550
and ebx, 2
mov dword [esp + 0xd0], ebx
je 0x50359b
push 0x6e
call sym.vidcap60.exe__SfGetUIFont_4
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push 6
push esi
call dword [sym.imp.GDI32.dll_SetTextAlign]
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [edi + 4]
mov ecx, edx
shl ecx, 0x1f
sar ecx, 0x1f
test ecx, ecx
je 0x5035b0
mov eax, dword [edi + 0x44]
inc eax
jmp 0x5035b7
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x40]
dec eax
test ecx, ecx
mov ecx, dword [edi + 0x5c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], ecx
je 0x50413b
mov ecx, dword [esp + 0x14c]
test ecx, ecx
mov eax, dword [edi + 0x58]
mov dword [esp + 0x38], eax
je 0x50361e
or edx, 8
mov dword [edi + 4], edx
xor edx, edx
cmp ebx, edx
je 0x50361e
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
mov edx, dword [edi + 0x44]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x150]
push eax
dec edx
push 1
mov dword [esp + 0xa4], edx
lea edx, [esp + 0x98]
push edx
push esi
push edi
call ecx
mov eax, dword [edi + 0xbc]
fild dword [edi + 0x28]
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x503639
fadd qword [0x5d55f0]
fdivp st(1)
xor ebx, ebx
xor ecx, ecx
test eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
fstp qword [esp + 0x118]
jbe 0x504b74
mov eax, dword [esp + 0x2c]
and eax, 0x100
mov dword [esp + 0x34], eax
jmp 0x503671
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5036e9
mov ecx, dword [esp + 0x1c]
mov eax, ecx
imul eax, eax, 0x2c
mov ebx, dword [eax + edi + 0x110]
lea edx, [eax + edi]
mov eax, dword [esp + 0x30]
sub eax, ebx
mov dword [esp + 0x28], edx
mov edx, 0
sets dl
dec edx
and edx, eax
test ecx, ecx
mov eax, dword [edi + 0x44]
lea ebx, [eax + edx]
jne 0x5036c1
mov ecx, dword [edi + 0xdc]
test ecx, ecx
jg 0x5036b5
mov ecx, dword [esp + 0x10]
add ecx, dword [edi + 0xe0]
mov dword [esp + 0x10], ecx
jmp 0x5036d1
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0xe4]
add edx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], 0
jmp 0x50378a
mov edx, dword [esp + 0x1c]
add ebx, ecx
inc edx
test edx, edx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jge 0x503706
fadd qword [0x5d55f0]
fmul qword [esp + 0x118]
fadd qword [0x5eb9e0]
call fcn.005c4484
sub eax, ebx
cmp eax, 1
jge 0x503724
mov eax, 1
mov ecx, dword [edi + 0xbc]
mov edx, dword [esp + 0x1c]
dec ecx
cmp edx, ecx
mov dword [esp + 0x24], eax
jb 0x503740
mov eax, dword [edi + 0x28]
sub eax, ebx
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x1c]
imul edx, edx, 0x2c
mov ebx, dword [edx + edi + 0x110]
lea ecx, [edx + edi]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
sub eax, ebx
mov edx, dword [esp + 0x10]
mov ecx, 0
sets cl
dec ecx
and ecx, eax
mov eax, dword [edi + 0x44]
lea ebx, [eax + ecx]
mov ecx, dword [esp + 0x2c]
and ecx, 0x80
neg cl
sbb ecx, ecx
not ecx
and ecx, edx
mov dword [esp + 0x18], ecx
test byte [edi + 4], 0x40
jne 0x5038d6
test ebx, ebx
jle 0x5037d0
mov edx, dword [esp + 0x3c]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x18]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x28]
push edx
push esi
mov edx, ebx
sub edx, eax
push edx
mov edx, dword [edi + 0x1c]
add edx, eax
mov eax, dword [edi + 0x18]
push ecx
push edx
add eax, dword [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
cmp ebx, dword [edi + 0x2c]
jge 0x5037fa
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 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 [edi + 0x2c]
inc ebx
sub eax, ebx
test eax, eax
jle 0x50382d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0xcc0020
push ebx
push ecx
mov ecx, dword [edi + 0x18]
push esi
push eax
mov eax, dword [edi + 0x1c]
push edx
add eax, ebx
mov ebx, dword [esp + 0x28]
push eax
add ecx, ebx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x114]
cmp ecx, dword [edx + 0x110]
jle 0x503878
mov eax, dword [esp + 0x30]
sub eax, ecx
js 0x503878
mov ebx, dword [edi + 0x44]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push 0xcc0020
add eax, ebx
push eax
push edx
mov edx, dword [edi + 0x1c]
push esi
push 1
add edx, eax
mov eax, dword [edi + 0x18]
push ecx
push edx
add eax, dword [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x118]
cmp ecx, dword [edx + 0x110]
jge 0x5039b2
mov eax, dword [esp + 0x30]
sub eax, ecx
js 0x5039b2
mov ecx, dword [edi + 0x44]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x3c]
push 0xcc0020
add ecx, eax
push ecx
mov ecx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [edi + 0x1c]
push edx
mov edx, dword [esp + 0x30]
push esi
push 1
push edx
mov edx, dword [edi + 0x18]
add ecx, eax
push ecx
add edx, ebx
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x5039b2
mov ecx, dword [edi + 0x18]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add ecx, ebx
mov dword [esp + 0x40], ecx
add ecx, edx
mov edx, dword [edi + 0x24]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0x1c]
push 0xf
add ecx, eax
push 2
lea eax, [esp + 0x48]
push eax
push ebp
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
call dword [sym.imp.USER32.dll_DrawEdge]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
inc ecx
dec eax
inc ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14c]
dec edx
test eax, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], edx
je 0x503951
mov ecx, dword [esp + 0x150]
push ecx
push 1
lea edx, [esp + 0x48]
push edx
push ebp
push edi
call eax
jmp 0x5039b2
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
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 + 0x54]
push 0
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x64]
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 + 0xd0]
test eax, eax
je 0x503a9d
mov edx, dword [edi + 4]
test dl, 0x10
je 0x503b81
mov ecx, dword [edi + 0xbc]
cmp ecx, 1
jbe 0x503b81
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x503a9d
cmp ecx, 1
fld dword [edi + 0xfc]
fst dword [esp + 0x14]
jbe 0x503a17
mov ebx, ecx
lea edx, [edi + 0x128]
dec ebx
fcom dword [edx]
fnstsw ax
test ah, 0x41
je 0x503a0d
fstp st(0)
fld dword [edx]
add edx, 0x2c
dec ebx
jne 0x503a00
fst dword [esp + 0x14]
fcomp dword [edi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x503a2d
mov eax, dword [edi]
test al, 8
je 0x503a2d
mov eax, dword [esp + 0x38]
jmp 0x503a2f
xor eax, eax
mov edx, dword [esp + 0x34]
test edx, edx
je 0x503b08
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x40]
push ecx
xor ebx, ebx
mov dword [esp + 0x130], eax
push esi
lea eax, [esp + 0x128]
mov ecx, edi
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x130], edx
call fcn.00502ed0
mov edx, dword [edi + 0x44]
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x1c]
push 0xcc0020
push ebx
push ebx
push esi
dec edx
push edx
push ecx
push eax
mov eax, dword [edi + 0x20]
sub eax, ecx
add eax, dword [edi + 0x18]
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov ebx, dword [esp + 0x14c]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x50411f
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x503d7e
mov ecx, dword [edi + 0xdc]
test ecx, ecx
jle 0x503d7e
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
add edx, dword [edi + 0x44]
mov dword [esp + 0x70], eax
add eax, ecx
test ebx, ebx
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x74], edx
mov dword [esp + 0x7c], eax
je 0x503d11
mov ecx, dword [esp + 0x150]
push ecx
push 1
lea edx, [esp + 0x78]
push edx
push ebp
push edi
call ebx
jmp 0x503d7e
imul ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add ecx, eax
add ecx, edx
mov dword [esp + 0xe0], ecx
mov ecx, dword [edi + 0x44]
lea ebx, [eax + edx]
mov edx, dword [esp + 0x14]
dec ecx
push edx
mov dword [esp + 0xe8], ecx
push esi
lea eax, [esp + 0xe0]
mov ecx, edi
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], 0
call fcn.00502ed0
mov ecx, dword [edi + 0xbc]
imul ecx, dword [esp + 0x24]
mov eax, dword [edi + 0x44]
mov edx, dword [edi + 0x1c]
push 0xcc0020
push 0
push ebx
push esi
push eax
mov eax, dword [edi + 0x18]
push ecx
push edx
add eax, dword [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x50411f
mov eax, dword [esp + 0x34]
test eax, eax
je 0x503c45
mov ecx, dword [edi + 0x68]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [esp + 0x14c]
mov edx, dword [edi + 0x40]
mov dword [esp + 0x14], eax
xor eax, eax
test ebx, ebx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
je 0x503bea
mov ecx, dword [esp + 0x150]
mov eax, dword [edi + 4]
push ecx
push 1
lea edx, [esp + 0xc8]
push edx
push esi
or eax, 8
push edi
mov dword [edi + 4], eax
call ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xfc]
push ecx
push esi
lea eax, [esp + 0xc8]
mov ecx, edi
call fcn.00502ed0
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x1c]
push 0xcc0020
push 0
push 0
push esi
dec edx
push edx
mov edx, dword [edi + 0x18]
push eax
mov eax, dword [edi + 0xdc]
push ecx
mov ecx, dword [esp + 0x2c]
sub edx, eax
add edx, ecx
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x503aa4
mov ecx, dword [esp + 0x28]
fld dword [ecx + 0xfc]
fcomp dword [edi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x503c5f
mov ebx, dword [esp + 0x38]
jmp 0x503c61
xor ebx, ebx
mov eax, dword [edi + 0xdc]
mov ecx, ebx
sub ecx, eax
add ecx, dword [esp + 0x18]
lea eax, [ebx + eax*2]
mov dword [esp + 0xb0], ecx
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x44]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x14c]
dec ecx
test eax, eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0xbc], ecx
je 0x503cc5
or edx, 8
mov dword [edi + 4], edx
mov edx, dword [esp + 0x150]
push edx
push 1
lea ecx, [esp + 0xb8]
push ecx
push esi
push edi
call eax
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xfc]
push eax
push esi
lea eax, [esp + 0xb8]
mov ecx, edi
call fcn.00502ed0
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x44]
mov eax, dword [esp + 0x20]
push 0xcc0020
push 0
add ebx, ecx
mov ecx, dword [edi + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push edx
mov edx, dword [edi + 0x18]
push eax
push ecx
add edx, ebx
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x50411f
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
push 0
push 0
push 0
mov dword [esp + 0xf8], ecx
lea ecx, [esp + 0xf4]
push ecx
push 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
push 0
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x94]
push 0
push ebp
mov dword [esp + 0x110], edx
mov dword [esp + 0x114], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x14]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [edi + 0xbc]
mov ecx, dword [esp + 0x1c]
dec eax
cmp eax, ecx
jne 0x503e54
mov eax, dword [edi + 0xdc]
test eax, eax
jle 0x503e54
mov edx, dword [edi + 0xe4]
imul edx, ecx
add edx, dword [edi + 0xe0]
add edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x44]
add edx, eax
add edx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
add eax, ecx
test ebx, ebx
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x50], edx
mov edx, dword [edi + 0x24]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
je 0x503ded
mov eax, dword [esp + 0x150]
push eax
push 1
lea ecx, [esp + 0x58]
push ecx
push ebp
push edi
call ebx
jmp 0x503e54
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
push 0
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
push 0
mov dword [esp + 0x108], eax
lea eax, [esp + 0x104]
push eax
push 2
push 0
mov dword [esp + 0x110], edx
mov edx, dword [esp + 0x74]
push 0
push ebp
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [edi + 0xbc]
mov eax, dword [esp + 0x1c]
dec edx
cmp eax, edx
jae 0x50411f
mov eax, dword [esp + 0x2c]
test al, 0x40
je 0x504058
mov eax, dword [edi + 0x64]
test eax, eax
je 0x504058
mov ecx, dword [edi + 0xd4]
test ecx, ecx
je 0x504058
mov ecx, dword [edi + 0xd8]
test ecx, ecx
jbe 0x504058
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test ebx, ebx
mov dword [esp + 0x18], eax
je 0x503f5c
mov eax, dword [edi + 0x38]
lea ecx, [eax + eax]
lea edx, [eax + eax*2]
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x150]
push ecx
push 1
mov dword [esp + 0x70], edx
lea edx, [esp + 0x68]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 4]
push edx
push esi
or eax, 8
push edi
mov dword [esp + 0x78], 0
mov dword [edi + 4], eax
call ebx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
push 0x8800c6
push 0
push 0
push esi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x74]
sub edx, ecx
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0x44]
push 0xcc0020
push 0
lea ebx, [eax + eax]
push ebx
mov ebx, dword [edi + 0x24]
push esi
sub ebx, ecx
sub ebx, edx
push ebx
mov ebx, dword [esp + 0x34]
push eax
mov eax, dword [edi + 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 + 0x18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x50411f
mov ebx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
lea ecx, [ebx + ebx]
mov dword [esp + 0x90], ecx
mov ecx, dword [edi + 4]
and ecx, 0xfffffff7
push 0xf
lea ebx, [ebx + ebx*2]
mov dword [esp + 0xa0], edx
mov dword [edi + 4], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x9c]
push 0
push 0
push 0
lea edx, [esp + 0x114]
push edx
push 2
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa8]
push 0
push esi
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], ebx
mov dword [esp + 0x134], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x14]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x9c]
push 0x8800c6
push 0
push 0
push esi
push ecx
sub ebx, eax
push ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push 0
push eax
push esi
call ebx
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x1c]
push 0xcc0020
push 0
lea edx, [eax + eax]
push edx
mov edx, dword [edi + 0x24]
sub edx, ecx
mov ecx, dword [edi + 0x44]
push esi
sub edx, ecx
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [edi + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [edi + 0x18]
add eax, ecx
add eax, edx
push eax
push ebp
call ebx
mov ecx, dword [esp + 0x18]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x50411f
mov eax, dword [edi + 0x18]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx]
add edx, dword [esp + 0x10]
mov dword [esp + 0x80], edx
mov edx, dword [edi + 0x1c]
add edx, dword [edi + 0x44]
mov dword [esp + 0x84], edx
mov edx, dword [edi + 0x38]
add edx, eax
mov eax, dword [edi + 0x24]
add edx, ecx
add edx, dword [esp + 0x10]
test ebx, ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
je 0x5040b2
mov ecx, dword [esp + 0x150]
push ecx
push 1
lea edx, [esp + 0x88]
push edx
push ebp
push edi
call ebx
jmp 0x50411f
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
push 0
push 0
push 0
mov dword [esp + 0xb0], ecx
lea ecx, [esp + 0xac]
push ecx
push 2
mov ebx, eax
mov eax, dword [esp + 0x94]
push 0
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xa4]
push 0
push ebp
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0xbc]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x503665
jmp 0x504b74
mov edx, dword [edi + 0x58]
fild dword [edi + 0x2c]
fild dword [edi + 0xbc]
mov dword [esp + 0x38], edx
mov edx, dword [edi + 0xbc]
test edx, edx
jge 0x50415b
fadd qword [0x5d55f0]
fdivp st(1)
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14c]
test edx, edx
fstp qword [esp + 0x118]
je 0x5041bd
test ebx, ebx
je 0x5041bd
lea ebx, [eax + 1]
mov dword [esp + 0xa0], ebx
mov ebx, dword [edi + 0x40]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x150]
push ecx
lea eax, [ebx + eax + 1]
push 1
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xa8]
push eax
push esi
push edi
mov dword [esp + 0xb8], 0
call edx
mov eax, dword [edi + 0xbc]
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x504b74
mov eax, dword [esp + 0x2c]
and eax, 0x100
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x504268
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x50420a
mov eax, dword [edi + 0xdc]
test eax, eax
jg 0x504202
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0xe0]
jmp 0x504214
mov ecx, dword [edi + 0xe4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
imul edx, edx, 0x2c
add eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
lea eax, [edx + edi]
mov edx, dword [esp + 0x30]
mov ebx, ecx
sub ebx, edx
add ebx, dword [eax + 0x110]
mov dword [esp + 0x28], eax
jns 0x504252
xor ebx, ebx
mov dword [esp + 0x14], ebx
jmp 0x504315
lea eax, [ecx + 1]
cmp ebx, eax
jle 0x50425b
mov ebx, eax
mov dword [esp + 0x14], 0
jmp 0x504315
mov ebx, dword [esp + 0x10]
add ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
inc eax
test eax, eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jge 0x50428b
fadd qword [0x5d55f0]
fmul qword [esp + 0x118]
fadd qword [0x5eb9e0]
call fcn.005c4484
sub eax, ebx
cmp eax, 1
jge 0x5042a9
mov eax, 1
mov ecx, dword [edi + 0xbc]
mov edx, dword [esp + 0x1c]
dec ecx
cmp edx, ecx
mov dword [esp + 0x18], eax
jb 0x5042c5
mov eax, dword [edi + 0x2c]
sub eax, ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
imul edx, edx, 0x2c
mov dword [esp + 0x24], eax
lea eax, [edx + edi]
mov edx, dword [esp + 0x30]
mov ebx, ecx
sub ebx, edx
add ebx, dword [eax + 0x110]
mov dword [esp + 0x28], eax
jns 0x5042ef
xor ebx, ebx
jmp 0x5042f8
lea eax, [ecx + 1]
cmp ebx, eax
jle 0x5042f8
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
and eax, 0x80
neg al
sbb eax, eax
not eax
and eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
cmp ebx, ecx
jge 0x5043bf
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
push 0xcc0020
add ecx, edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
add eax, ebx
push eax
mov eax, dword [edi + 0x1c]
push esi
push ecx
mov ecx, dword [edi + 0x18]
sub edx, ebx
push edx
add eax, dword [esp + 0x28]
push eax
add ecx, ebx
push ecx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
cmp ebx, 1
jl 0x5043bf
mov eax, dword [edi]
test ah, 1
push 0x42
je 0x504382
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1c]
mov ecx, dword [esp + 0x14]
add edx, 0xfffffffe
push edx
lea edx, [ecx + eax + 1]
mov eax, dword [edi + 0x18]
push 1
push edx
add eax, ebx
push eax
jmp 0x5043b8
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 0xbc]
lea ecx, [eax + 1]
sub ecx, edx
mov edx, dword [esp + 0x1c]
neg ecx
sbb ecx, ecx
inc ecx
sub edx, ecx
xor ecx, ecx
test eax, eax
mov eax, dword [edi + 0x1c]
sete cl
push edx
mov edx, dword [esp + 0x18]
push 1
add ecx, edx
mov edx, dword [edi + 0x18]
add ecx, eax
push ecx
add edx, ebx
push edx
push ebp
call dword [sym.imp.GDI32.dll_PatBlt]
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
jge 0x5043c9
mov ebx, ecx
test ebx, ebx
jle 0x5043f9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi + 0x1c]
push 0xcc0020
push eax
mov eax, dword [esp + 0x18]
push 0
push esi
push ecx
push ebx
add edx, eax
mov eax, dword [edi + 0x18]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x114]
cmp eax, dword [edx + 0x110]
jle 0x50444c
sub eax, dword [esp + 0x30]
add eax, ecx
cmp eax, ecx
jge 0x50444c
cmp eax, 1
jl 0x50444c
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push 0xcc0020
push ecx
mov ecx, dword [edi + 0x1c]
push eax
push esi
push edx
mov edx, dword [edi + 0x18]
push 1
add ecx, ebx
push ecx
add edx, eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x118]
cmp eax, dword [edx + 0x110]
jge 0x50449f
sub eax, dword [esp + 0x30]
add eax, ecx
cmp eax, ecx
jge 0x50449f
cmp eax, 1
jl 0x50449f
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0xcc0020
add ecx, edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x40]
add ecx, eax
push ecx
mov ecx, dword [edi + 0x1c]
push esi
push edx
mov edx, dword [edi + 0x18]
push 1
add ecx, ebx
push ecx
add edx, eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x5045a3
mov ecx, dword [edi + 4]
test cl, 0x10
je 0x50461f
mov eax, dword [edi + 0xbc]
cmp eax, 1
jbe 0x50461f
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x5045a3
cmp eax, 1
fld dword [edi + 0xfc]
fst dword [esp + 0x18]
jbe 0x504507
mov edx, eax
lea ecx, [edi + 0x128]
dec edx
lea ecx, [ecx]
fcom dword [ecx]
fnstsw ax
test ah, 0x41
je 0x5044fd
fstp st(0)
fld dword [ecx]
add ecx, 0x2c
dec edx
jne 0x5044f0
fst dword [esp + 0x18]
fcomp dword [edi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x50451d
mov eax, dword [edi]
test al, 8
je 0x50451d
mov eax, dword [esp + 0x3c]
jmp 0x50451f
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ebx, dword [edi + 0x2c]
add ecx, 2
mov dword [esp + 0xa0], ecx
lea ecx, [eax + edx]
mov dword [esp + 0x14], ecx
sub ebx, 2
inc ecx
mov dword [esp + 0xa4], ecx
mov ecx, dword [edi + 0x40]
add ecx, dword [esp + 0x20]
add eax, ebx
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x18]
add eax, edx
push ecx
mov dword [esp + 0xb0], eax
push esi
lea eax, [esp + 0xa8]
mov ecx, edi
call fcn.00502ed0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0xcc0020
push edx
mov edx, dword [edi + 0x40]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [edi + 0x1c]
push esi
push ebx
mov ebx, dword [esp + 0x24]
inc edx
push edx
mov edx, dword [edi + 0x18]
add ecx, ebx
push ecx
add edx, eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x504b5d
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x50481b
mov ecx, dword [edi + 0xdc]
test ecx, ecx
jle 0x50481b
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x40]
mov edx, dword [edi + 0x20]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x1c]
sub edx, ebx
mov ebx, dword [esp + 0x14c]
mov dword [esp + 0x84], eax
add eax, ecx
test ebx, ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
je 0x5047a6
mov eax, dword [esp + 0x150]
push eax
push 1
lea ecx, [esp + 0x88]
push ecx
push ebp
push edi
call ebx
jmp 0x504822
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5046db
mov eax, dword [edi + 0x68]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 0x40]
mov ebx, eax
mov eax, dword [edi + 0x44]
xor ecx, ecx
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x14c]
cmp eax, ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
je 0x504681
or dword [edi + 4], 8
mov ecx, dword [esp + 0x150]
push ecx
push 1
lea edx, [esp + 0x98]
push edx
push esi
push edi
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xfc]
push ecx
push esi
lea eax, [esp + 0x98]
mov ecx, edi
call fcn.00502ed0
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x40]
mov ecx, dword [edi + 0x1c]
push 0xcc0020
push 0
push 0
push esi
push edx
mov edx, dword [edi + 0xdc]
push eax
mov eax, dword [esp + 0x28]
sub ecx, edx
mov edx, dword [edi + 0x18]
add ecx, eax
push ecx
add edx, dword [esp + 0x3c]
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x5045a3
mov eax, dword [esp + 0x28]
fld dword [eax + 0xfc]
fcomp dword [edi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x5046f5
mov eax, dword [esp + 0x3c]
jmp 0x5046f7
xor eax, eax
mov edx, dword [esp + 0x20]
lea ebx, [edx + 1]
mov dword [esp + 0xb0], ebx
mov ebx, dword [esp + 0x14]
add ebx, eax
mov eax, dword [edi + 0x40]
lea edx, [eax + edx + 1]
mov eax, dword [esp + 0x18]
mov dword [esp + 0xb8], edx
lea edx, [ebx + eax]
mov eax, dword [esp + 0x14c]
test eax, eax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xbc], edx
je 0x50475a
mov eax, dword [esp + 0x150]
push eax
or ecx, 8
push 1
mov dword [edi + 4], ecx
lea ecx, [esp + 0xb8]
push ecx
push esi
push edi
call dword [esp + 0x160]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xfc]
push eax
push esi
lea eax, [esp + 0xb8]
mov ecx, edi
call fcn.00502ed0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [edi + 0x40]
push 0xcc0020
push ebx
mov ebx, dword [esp + 0x18]
push eax
push esi
push ecx
mov ecx, dword [edi + 0x1c]
inc edx
push edx
mov edx, dword [edi + 0x18]
add ecx, ebx
push ecx
add edx, eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x504b5d
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
push 0
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x8c]
push 0
mov dword [esp + 0x118], eax
lea eax, [esp + 0x114]
push eax
push 2
push 0
mov dword [esp + 0x120], edx
mov edx, dword [esp + 0xa4]
push 0
push ebp
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
jmp 0x504822
mov ebx, dword [esp + 0x14c]
mov edx, dword [edi + 0xbc]
mov ecx, dword [esp + 0x1c]
dec edx
cmp edx, ecx
jne 0x5048fe
mov eax, dword [edi + 0xdc]
test eax, eax
jle 0x5048fe
mov edx, dword [edi + 0x18]
mov dword [esp + 0x60], edx
mov edx, dword [edi + 0xe4]
imul edx, ecx
add edx, dword [edi + 0x1c]
add edx, dword [edi + 0xe0]
add edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x40]
add edx, eax
mov eax, dword [edi + 0x20]
sub eax, ecx
test ebx, ebx
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
je 0x504891
mov edx, dword [esp + 0x150]
push edx
push 1
lea eax, [esp + 0x68]
push eax
push ebp
push edi
call ebx
jmp 0x5048fe
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 + 0x60]
push 0
push 0
push 0
mov dword [esp + 0x108], edx
lea edx, [esp + 0x104]
push edx
push 2
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x110], ecx
mov ecx, dword [esp + 0x84]
push 0
push ebp
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x14]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, dword [edi + 0xbc]
mov eax, dword [esp + 0x1c]
dec ecx
cmp eax, ecx
jae 0x504b5d
mov eax, dword [esp + 0x2c]
test al, 0x40
je 0x504aa7
mov eax, dword [edi + 0x64]
test eax, eax
je 0x504aa7
mov ecx, dword [edi + 0xd4]
test ecx, ecx
je 0x504aa7
mov ecx, dword [edi + 0xd8]
test ecx, ecx
jbe 0x504aa7
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test ebx, ebx
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x18], eax
je 0x5049b7
mov eax, dword [edi + 0x3c]
lea edx, [eax + eax]
mov dword [esp + 0x54], edx
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x150]
push eax
push 1
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x64], edx
mov edx, dword [edi + 4]
push ecx
push esi
or edx, 8
push edi
mov dword [esp + 0x64], 0
mov dword [edi + 4], edx
call ebx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
push 0x8800c6
push 0
push 0
push esi
sub edx, eax
push edx
mov edx, dword [esp + 0x6c]
sub edx, ecx
push edx
push eax
push ecx
jmp 0x504a5f
mov ebx, dword [edi + 0x3c]
lea eax, [ebx + ebx]
mov dword [esp + 0xc4], eax
mov eax, dword [edi + 4]
and eax, 0xfffffff7
push 0xf
mov dword [esp + 0xcc], ecx
lea ebx, [ebx + ebx*2]
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0xc4]
push 0
push 0
push 0
lea ecx, [esp + 0xf4]
push ecx
push 2
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xe0]
push 0
push esi
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], edx
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ebx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
push 0x8800c6
push 0
push 0
push esi
sub ebx, eax
push ebx
push ecx
push eax
push 0
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push esi
call ebx
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x18]
push 0xcc0020
lea edx, [eax + eax]
push edx
mov edx, dword [edi + 0x40]
push 0
push esi
push eax
mov eax, dword [edi + 0x20]
sub eax, edx
mov edx, dword [edi + 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 + 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x504b5d
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x24]
lea edx, [eax + ecx]
add edx, dword [esp + 0x10]
mov dword [esp + 0x74], edx
mov edx, dword [edi + 0x20]
sub edx, dword [edi + 0x40]
mov dword [esp + 0x78], edx
mov edx, dword [edi + 0x3c]
add edx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
test ebx, ebx
lea ecx, [edx + eax + 1]
mov dword [esp + 0x7c], ecx
je 0x504af6
mov edx, dword [esp + 0x150]
push edx
push 1
lea eax, [esp + 0x78]
push eax
push ebp
push edi
call ebx
jmp 0x504b5d
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push 0
push 0
push 0
mov dword [esp + 0xe8], edx
lea edx, [esp + 0xe4]
push edx
push 2
push 0
mov ebx, eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xf0], ecx
mov ecx, dword [esp + 0x94]
push 0
push ebp
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0xbc]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x5041e0
mov eax, dword [esp + 0xd4]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x130
ret 0x10