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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x669fbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x98]
mov edx, dword [ebp - 8]
call fcn.004477ac
mov esi, eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x68], eax
mov byte [ebp - 0x4a], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
add eax, dword [esi + 0x2c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
add eax, dword [esi + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [esi + 0x10]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi + 0x10]
push eax
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
call fcn.006686ac
pop ecx
cmp dword [ebp - 0x64], 0
jle 0x669f3d
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668937
adc edx, 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ecx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xac]
call fcn.00651804
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x66896b
adc edx, 0
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x9c]
call fcn.0066f230
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668999
adc edx, 0
lea ecx, [ebp - 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xa0]
call fcn.0066f230
dec eax
mov dword [ebp - 0x20], eax
cmp byte [esi + 0x3c], 0
je 0x668b26
cmp dword [esi + 0x38], 0
je 0x668b26
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x668b26
inc eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.004477ac
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668a02
adc edx, 0
cmp edx, dword [ebx + 4]
jne 0x668a47
mov eax, dword [ebp + 8]
lea edx, [eax - 4]
mov eax, dword [ebp - 0x44]
call fcn.0065171c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
sub edx, eax
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp + 8]
add edx, dword [eax - 4]
inc edx
mov dword [ebx + 0x14], edx
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [ebp - 0x68]
mov edx, dword [ebp + 8]
add eax, dword [edx - 4]
mov dword [ebx + 0x1c], eax
jmp 0x668b1a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668a5d
adc edx, 0
cmp edx, dword [ebx + 8]
jne 0x668a73
cmp dword [ebx + 0x18], 0
jne 0x668a73
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x18], eax
jmp 0x668b1a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668a89
adc edx, 0
cmp edx, dword [ebx + 4]
jle 0x668b1a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668aa8
adc edx, 0
cmp edx, dword [ebx + 8]
jge 0x668b1a
mov eax, dword [ebp + 8]
lea edx, [eax - 4]
mov eax, dword [ebp - 0x44]
call fcn.0065171c
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
sub edx, eax
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp + 8]
add edx, dword [eax - 4]
inc edx
mov dword [ebp - 0x70], edx
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 0x70]
jge 0x668ae0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x74], eax
jmp 0x668ae6
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [ebp - 0x68]
mov edx, dword [ebp + 8]
add eax, dword [edx - 4]
mov dword [ebp - 0x78], eax
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0x78]
jle 0x668b0e
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x7c], eax
jmp 0x668b14
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x1c], eax
inc dword [ebp - 0x38]
dec dword [ebp - 0x6c]
jne 0x6689df
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x20]
call fcn.005bc3e8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x80], eax
call fcn.004fb0e4
test al, al
je 0x668b64
call fcn.004fb0c8
mov edx, dword [ebp - 0x80]
call fcn.004f6070
mov dword [ebp - 0x84], eax
jmp 0x668b6d
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
call fcn.0046ddb8
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0x84]
call fcn.0046e434
cmp dword [ebp - 0x18], 0xffffffff
jne 0x6691a1
mov eax, dword [ebp - 0x3c]
mov edx, dword [0x6467a4]
call fcn.004055ec
test al, al
je 0x668ec2
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x61]
add al, 0xfb
sub al, 2
jae 0x668c79
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x3c]
add eax, dword [edx + 0x64]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x80]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x170]
mov edx, dword [ebp - 0x3c]
call fcn.0066c218
cmp byte [esi + 0x3c], 0
je 0x669f25
cmp dword [esi + 0x38], 0
je 0x669f25
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x669f25
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.004477ac
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668c52
adc edx, 0
cmp edx, dword [ebx + 4]
jne 0x668c6b
mov eax, dword [ebx + 4]
inc eax
cmp eax, dword [ebx + 8]
jne 0x668c6b
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.00447620
dec dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0xffffffff
jne 0x668c2f
jmp 0x669f25
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_SetTextJustification
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + 0x10], 0
je 0x668caf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + 0x60]
mov edx, dword [ebp - 0x3c]
mov byte [edx + 0x60], al
jmp 0x668cb6
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0x60], 0
mov eax, dword [esi + 0x2c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x6c]
add ecx, dword [ebp - 0x54]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x70]
cmp byte [esi + 0x3c], 0
je 0x668eae
cmp dword [esi + 0x38], 0
je 0x668eae
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x668eae
inc eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.004477ac
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668d30
adc edx, 0
cmp edx, dword [ebx + 4]
jl 0x668ea2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668d4f
adc edx, 0
cmp edx, dword [ebx + 8]
jg 0x668ea2
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x68]
sub al, 2
jb 0x668d6c
je 0x668d80
dec eax
sub al, 2
jb 0x668dc0
jmp 0x668dde
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x3c]
add eax, dword [edx + 0x74]
mov dword [ebp - 0x28], eax
jmp 0x668de3
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edx, dword [ebp - 0x3c]
sub eax, dword [edx + 0x74]
mov edx, dword [ebp - 0x3c]
add eax, dword [edx + 0x78]
sar eax, 1
jns 0x668d9b
adc eax, 0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
sub edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x44]
add edx, dword [ecx + 0x38]
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x2c]
sar ecx, 1
jns 0x668db7
adc ecx, 0
sub edx, ecx
sub edx, eax
mov dword [ebp - 0x28], edx
jmp 0x668de3
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
sub edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x3c]
sub edx, dword [ecx + 0x78]
sub edx, eax
mov dword [ebp - 0x28], edx
jmp 0x668de3
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x5c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668e07
adc edx, 0
cmp edx, dword [ebx + 4]
jne 0x668e3d
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x6c]
add eax, dword [ebp - 0x54]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 4]
inc eax
cmp eax, dword [ebx + 8]
jne 0x668e35
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x60]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x1c], eax
jmp 0x668ea2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668e53
adc edx, 0
cmp edx, dword [ebx + 8]
je 0x668ea2
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 0x28]
jge 0x668e6b
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x88], eax
jmp 0x668e74
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0x2c]
jle 0x668e90
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x8c], eax
jmp 0x668e99
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x1c], eax
inc dword [ebp - 0x38]
dec dword [ebp - 0x6c]
jne 0x668d0d
mov eax, dword [ebp - 0x3c]
call fcn.0066f138
add dword [ebp - 0x54], eax
mov byte [ebp - 0x4a], 1
jmp 0x669f25
mov eax, dword [ebp - 0x3c]
mov edx, dword [0x6459b0]
call fcn.004055ec
test al, al
je 0x668ede
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0xb4], 1
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x61]
add al, 0xfb
sub al, 2
jae 0x668f7e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x3c]
add eax, dword [edx + 0x64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x80]
mov dword [ebp - 0x28], eax
cmp byte [esi + 0x3c], 0
je 0x669170
cmp dword [esi + 0x38], 0
je 0x669170
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x669170
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.004477ac
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x668f57
adc edx, 0
cmp edx, dword [ebx + 4]
jne 0x668f70
mov eax, dword [ebx + 4]
inc eax
cmp eax, dword [ebx + 8]
jne 0x668f70
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.00447620
dec dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0xffffffff
jne 0x668f34
jmp 0x669170
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x6c]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 0x68]
sub al, 2
jb 0x668f9e
je 0x668fb2
dec eax
sub al, 2
jb 0x668fe9
jmp 0x669007
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x3c]
add eax, dword [edx + 0x74]
mov dword [ebp - 0x28], eax
jmp 0x66900c
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edx, dword [ebp - 0x3c]
sub eax, dword [edx + 0x74]
mov edx, dword [ebp - 0x3c]
add eax, dword [edx + 0x78]
sar eax, 1
jns 0x668fcd
adc eax, 0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx + 0x2c]
sar ecx, 1
jns 0x668fe0
adc ecx, 0
sub edx, ecx
sub edx, eax
mov dword [ebp - 0x28], edx
jmp 0x66900c
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
sub edx, dword [ebp - 0x68]
sub edx, eax
mov eax, dword [ebp - 0x3c]
sub edx, dword [eax + 0x78]
mov dword [ebp - 0x28], edx
jmp 0x66900c
xor eax, eax
mov dword [ebp - 0x28], eax
cmp byte [esi + 0x3c], 0
je 0x669161
cmp dword [esi + 0x38], 0
je 0x669161
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x669161
inc eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.004477ac
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x66905d
adc edx, 0
cmp edx, dword [ebx + 4]
jl 0x669155
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x66907c
adc edx, 0
cmp edx, dword [ebx + 8]
jg 0x669155
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x66909b
adc edx, 0
cmp edx, dword [ebx + 4]
jne 0x6690d9
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x6c]
add eax, dword [ebp - 0x54]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 4]
inc eax
cmp eax, dword [ebx + 8]
jne 0x6690c9
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x60]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x5c]
add eax, dword [ebp - 0x28]
mov dword [ebx + 0x1c], eax
jmp 0x669155
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x6690ef
adc edx, 0
cmp edx, dword [ebx + 8]
je 0x669155
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 0x28]
jge 0x669107
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x90], eax
jmp 0x669110
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x5c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0x94]
jle 0x669140
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x98], eax
jmp 0x66914c
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebx + 0x1c], eax
inc dword [ebp - 0x38]
dec dword [ebp - 0x6c]
jne 0x66903a
mov eax, dword [ebp - 0x3c]
call fcn.0066f138
add dword [ebp - 0x54], eax
mov byte [ebp - 0x4a], 1
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
sub edx, dword [eax - 0x1c]
push edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
sub edx, dword [eax - 0x1c]
sub edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax]
call dword [ebx + 0x70]
jmp 0x669f25
cmp dword [ebp - 0x20], 0xffffffff
jne 0x66950d
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x88]
test al, al
jne 0x669f25
mov eax, dword [ebp - 0x40]
mov byte [eax + 0xc0], 1
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax + 0x61]
add al, 0xfb
sub al, 2
jae 0x66926e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x40]
add eax, dword [edx + 0x64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x1c]
mov dword [ebp - 0x28], eax
cmp byte [esi + 0x3c], 0
je 0x6694c8
cmp dword [esi + 0x38], 0
je 0x6694c8
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x6694c8
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.004477ac
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x669247
adc edx, 0
cmp edx, dword [ebx + 4]
jne 0x669260
mov eax, dword [ebx + 4]
inc eax
cmp eax, dword [ebx + 8]
jne 0x669260
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.00447620
dec dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0xffffffff
jne 0x669224
jmp 0x6694c8
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x6c]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax + 0x68]
sub al, 2
jb 0x669291
je 0x6692a5
dec al
je 0x6692ca
dec al
je 0x6692ee
jmp 0x66930f
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x74]
add eax, dword [esi + 0x2c]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x1c]
mov dword [ebp - 0x28], eax
jmp 0x669318
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x5c]
add eax, dword [esi + 0x10]
sar eax, 1
jns 0x6692b7
adc eax, 0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
sub edx, eax
mov eax, dword [ebp + 8]
sub edx, dword [eax - 0x1c]
mov dword [ebp - 0x28], edx
jmp 0x669318
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
sub edx, eax
mov eax, dword [ebp - 0x40]
sub edx, dword [eax + 0x78]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp + 8]
sub edx, dword [eax - 0x1c]
mov dword [ebp - 0x28], edx
jmp 0x669318
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
sub edx, eax
mov eax, dword [ebp - 0x40]
sub edx, dword [eax + 0x78]
mov eax, dword [ebp + 8]
sub edx, dword [eax - 0x1c]
mov dword [ebp - 0x28], edx
jmp 0x669318
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [0x64a6ec]
call fcn.004055ec
test al, al
je 0x669330
add dword [ebp - 0x28], 2
jmp 0x669345
mov eax, dword [ebp - 0x40]
mov edx, dword [0x6203b4]
call fcn.004055ec
test al, al
je 0x669345
inc dword [ebp - 0x28]
cmp byte [esi + 0x3c], 0
je 0x6694c8
cmp dword [esi + 0x38], 0
je 0x6694c8
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x6694c8
inc eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.004477ac
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x669396
adc edx, 0
cmp edx, dword [ebx + 4]
jl 0x6694bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x6693b5
adc edx, 0
cmp edx, dword [ebx + 8]
jg 0x6694bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x6693d4
adc edx, 0
cmp edx, dword [ebx + 4]
jne 0x669423
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
add eax, dword [ebp - 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x6c]
add eax, dword [ebp - 0x54]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 4]
inc eax
cmp eax, dword [ebx + 8]
jne 0x669408
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x60]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, dword [ebp - 0x28]
add eax, edx
mov dword [ebx + 0x1c], eax
jmp 0x6694bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x669439
adc edx, 0
cmp edx, dword [ebx + 8]
je 0x6694bc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebp - 0x9c]
jge 0x669463
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xa0], eax
jmp 0x66946f
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x5c]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x1c]
add edx, dword [ebp - 0x28]
add eax, edx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0xa4]
jle 0x6694a7
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xa8], eax
jmp 0x6694b3
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebx + 0x1c], eax
inc dword [ebp - 0x38]
dec dword [ebp - 0x6c]
jne 0x669373
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov ebx, dword [eax]
call dword [ebx + 0x70]
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax + 0x61]
add al, 0xfb
sub al, 2
jb 0x669f25
mov eax, dword [ebp - 0x40]
call fcn.0066f138
add dword [ebp - 0x54], eax
mov byte [ebp - 0x4a], 1
jmp 0x669f25
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jge 0x669520
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xac], eax
jmp 0x669529
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jge 0x669545
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xb0], eax
jmp 0x66954e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x10], eax
push ebp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x60]
call fcn.006687a0
pop ecx
mov byte [ebp - 0x49], al
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, dword [ebp - 0x10]
jle 0x66957b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xb4], eax
jmp 0x669585
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, dword [ebp - 0x64]
jle 0x6695a2
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xb8], eax
jmp 0x6695ac
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc], eax
cmp byte [ebp - 0x49], 0
je 0x6696e6
push 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x48]
call fcn.0046efd4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x48]
xor edx, edx
call fcn.0046f154
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x20]
cmp dword [eax + 0x28], 0x1fffffff
jne 0x669680
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xbc], eax
call fcn.004fb0e4
test al, al
je 0x66963e
call fcn.004fb0c8
mov edx, dword [ebp - 0xbc]
call fcn.004f6070
mov dword [ebp - 0xc0], eax
jmp 0x66964a
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
call fcn.0046ddb8
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
xor edx, 0xffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
call fcn.0046e434
jmp 0x6697a1
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xc4], eax
call fcn.004fb0e4
test al, al
je 0x6696b0
call fcn.004fb0c8
mov edx, dword [ebp - 0xc4]
call fcn.004f6070
mov dword [ebp - 0xc8], eax
jmp 0x6696bc
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
call fcn.0046ddb8
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0xc8]
call fcn.0046e434
jmp 0x6697a1
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x20]
cmp dword [eax + 0x28], 0x1fffffff
jne 0x66971d
push 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x48]
mov dl, 1
call fcn.0046f154
jmp 0x6697a1
push 2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x48]
xor edx, edx
call fcn.0046f154
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xcc], eax
call fcn.004fb0e4
test al, al
je 0x669770
call fcn.004fb0c8
mov edx, dword [ebp - 0xcc]
call fcn.004f6070
mov dword [ebp - 0xd0], eax
jmp 0x66977c
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
call fcn.0046ddb8
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0xd0]
call fcn.0046efd4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x4d], 0
je 0x6698db
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x6e], 0
je 0x669851
push 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_GetDeviceCaps
sub eax, 3
jae 0x669851
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xd4], eax
call fcn.004fb0e4
test al, al
je 0x669812
call fcn.004fb0c8
mov edx, dword [ebp - 0xd4]
call fcn.004f6070
mov dword [ebp - 0xd8], eax
jmp 0x66981e
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
call fcn.0046ddb8
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffff
je 0x669851
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
xor edx, edx
call fcn.0046e434
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x6c], 0
jne 0x6698db
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xdc], eax
call fcn.004fb0e4
test al, al
je 0x669893
call fcn.004fb0c8
mov edx, dword [ebp - 0xdc]
call fcn.004f6070
mov dword [ebp - 0xe0], eax
jmp 0x66989f
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
call fcn.0046ddb8
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
and eax, 0xe0e0
cmp eax, 0xe0e0
jne 0x6698db
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov edx, 0x2a0a0a0
call fcn.0046e434
push 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_SetTextAlign
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3c], 0
jne 0x6698fe
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x66992d
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3c], 9
jne 0x66991c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x28]
mov ecx, 3
cdq
idiv ecx
neg eax
mov dword [ebp - 0x24], eax
jmp 0x66992d
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x38]
sar eax, 1
jns 0x669929
adc eax, 0
inc eax
mov dword [ebp - 0x24], eax
cmp byte [ebp - 0x4a], 0
jne 0x66993d
cmp dword [ebp - 0x24], 0
jne 0x66993d
xor eax, eax
jmp 0x66993f
mov al, 1
mov byte [ebp - 0x4a], al
cmp byte [ebp - 0x4a], 0
je 0x669965
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x1c]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x24], 0
setne byte [ebp - 0x4a]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x191], 0
jne 0x669d1b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0xc]
test eax, eax
jg 0x6699a8
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, dword [ebp - 0x60]
sub eax, 2
movzx eax, word [eax]
sub ax, 8
je 0x6699a5
sub ax, 0x18
jne 0x6699a8
dec dword [ebp - 0x34]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
movzx eax, byte [eax + 0xb8]
dec eax
sub al, 2
jb 0x6699c2
sub al, 1
jne 0x669a76
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x10]
cmp byte [eax + 0x39d], 0
jne 0x669a76
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x1c]
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
add ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x14]
sub edx, dword [esi + 0x10]
sub edx, dword [esi + 8]
mov eax, dword [ebp + 8]
sub edx, dword [eax - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
call fcn.0040cd30
push 0
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x100]
push eax
push 4
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_ExtTextOutW
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x60]
call fcn.00617cc0
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
jmp 0x669c75
cmp dword [esi + 0x30], 0
jne 0x669a93
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_SetTextJustification
jmp 0x669aac
mov eax, dword [esi + 0x30]
push eax
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_SetTextJustification
mov eax, dword [0x77bc20]
cmp byte [eax], 0
jne 0x669bee
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0xc]
test eax, eax
jg 0x669b9f
cmp byte [esi + 0x44], 0
je 0x669b9f
lea ecx, [ebp - 4]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x60]
call fcn.00668748
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
je 0x669b14
mov eax, dword [ebp - 0xe4]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
push eax
mov eax, dword [ebp - 4]
call fcn.00407e90
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0xe8]
push eax
call sub.gdi32.dll_TextOutW
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
je 0x669b6c
mov eax, dword [ebp - 0xec]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
call fcn.00407e90
mov edx, eax
mov ecx, dword [ebp - 0xec]
mov eax, dword [ebp - 0xf0]
call fcn.00617cc0
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
jmp 0x669c75
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_TextOutW
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x60]
call fcn.00617cc0
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
jmp 0x669c75
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x60]
call fcn.00617cc0
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x1c]
inc eax
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x14]
sub edx, dword [esi + 0x10]
sub edx, dword [esi + 8]
mov eax, dword [ebp + 8]
sub edx, dword [eax - 0x1c]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x54]
call fcn.0040cd30
push 0
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x100]
push eax
push 4
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_ExtTextOutW
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x168], 0
je 0x669d1b
cmp byte [ebp - 0x49], 0
jne 0x669d1b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 0x60]
sub edx, dword [eax + 0x8c]
sar edx, 1
jns 0x669cab
adc edx, 0
mov eax, dword [ebp + 8]
cmp edx, dword [eax - 0x10]
jne 0x669d1b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x44]
call fcn.0046ec00
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x44]
add eax, dword [edx + 0x38]
add eax, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x48]
mov edx, 0xffffff
call fcn.0046efd4
mov eax, dword [ebp - 0x54]
inc eax
push eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
sub edx, dword [eax + 0x28]
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x54]
mov ebx, dword [eax]
call dword [ebx + 0x7c]
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x18], 0
jne 0x669d5e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [eax]
call dword [edx + 0xc]
test al, al
je 0x669e47
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp word [eax + 0x1aa], 0
je 0x669e47
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
cmp dword [eax + 4], 0
je 0x669e47
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x44]
add eax, dword [edx + 0x38]
add eax, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
sub edx, dword [eax + 0x28]
mov ecx, dword [ebp - 0x5c]
inc ecx
mov eax, dword [ebp - 0x54]
call fcn.0040cd30
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x18], 0
je 0x669de9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
xor edx, edx
call fcn.0046e434
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x70]
mov edx, dword [eax]
call dword [edx + 0x1ec]
test al, al
je 0x669de9
lea edx, [ebp - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp word [eax + 0x1aa], 0
je 0x669e47
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x1b0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebx + 0x1ac]
call dword [ebx + 0x1a8]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x168], 0
je 0x669f25
cmp byte [ebp - 0x49], 0
jne 0x669f25
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
cmp eax, dword [edx + 0x28]
jne 0x669f25
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov edx, dword [edx + 0xc]
cmp eax, dword [edx + 0x20]
jne 0x669f25
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0xc]
jne 0x669f25
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x98]
mov eax, dword [eax + 8]
dec eax
cmp eax, dword [ebp - 8]
jne 0x669f25
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x40]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x44]
call fcn.0046ec00
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
sub eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x44]
add eax, dword [edx + 0x38]
add eax, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
sub eax, dword [edx - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov eax, dword [eax + 0x48]
mov edx, 0xffffff
call fcn.0046efd4
mov eax, dword [ebp - 0x54]
inc eax
push eax
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
sub edx, dword [eax + 0x28]
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x54]
mov ebx, dword [eax]
call dword [ebx + 0x7c]
mov eax, dword [ebp - 0xc]
sub dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xc]
add eax, eax
add dword [ebp - 0x60], eax
cmp dword [ebp - 0x64], 0
jg 0x668916
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.004702bc
push eax
call sub.gdi32.dll_SetTextJustification
cmp byte [esi + 0x3c], 0
je 0x669fa8
cmp dword [esi + 0x38], 0
je 0x669fa8
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x669fa8
inc eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [esi + 0x38]
call fcn.004477ac
mov ebx, eax
cmp byte [ebx + 0xd], 0
jne 0x669f8d
cmp dword [ebx + 0x18], 0
jne 0x669f93
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebx + 0x10]
call fcn.00668720
pop ecx
inc dword [ebp - 0x38]
dec dword [ebp - 0x6c]
jne 0x669f74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x669fc5
lea eax, [ebp - 4]
call fcn.00406f98
ret