Function at 0x497598
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 9], cl
mov byte [ebp - 0x31], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49822e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xb4]
mov byte [ebp - 0x39], al
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x38]
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x44], eax
xor edx, edx
push ebp
push 0x4981c3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 9]
mov byte [eax + 0xb4], dl
mov dl, 1
mov eax, dword [0x429e34]
call fcn.0042bda0
mov dword [ebp - 0x44], eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
call fcn.0042c8d4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x50]
mov edx, eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x496e6c]
call fcn.004066e4
add esp, 4
mov byte [ebp - 0x45], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4977a9
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov edi, dword [eax + 0x1c]
mov eax, edi
mov edx, dword [0x4916cc]
call fcn.00404248
mov ebx, eax
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
mov dword [ebp - 0x6c], eax
cmp edi, dword [ebp - 0x40]
je 0x49779d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 0
je 0x49771b
test bl, bl
jne 0x49779d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
call fcn.00495e5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov esi, dword [eax + 0x7c]
add esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 0x30]
cmp esi, dword [eax + 8]
jge 0x4976f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov edx, esi
call fcn.00495db0
mov dword [ebp - 0x60], eax
jmp 0x4976fe
xor eax, eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x49779d
mov eax, dword [ebp - 0x60]
cmp byte [eax + 0x20], 0
jne 0x49771b
test byte [edi + 0x60], 4
je 0x49779d
test bl, bl
jne 0x497762
test byte [edi + 0x60], 8
je 0x49772e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x49779d
mov al, byte [edi + 0xa8]
mov edx, dword [ebp - 0x6c]
mov byte [edx + 0x10], al
mov eax, dword [ebp - 0x6c]
cmp byte [eax + 0x10], 0
je 0x49779d
test byte [edi + 0x60], 4
setne al
and al, byte [ebp - 0x45]
je 0x497756
mov eax, dword [ebp - 0x6c]
mov byte [eax + 0x10], 0
test byte [edi + 0x60], 4
setne al
mov byte [ebp - 0x45], al
jmp 0x49779d
mov edi, dword [edi + 0xb0]
test edi, edi
je 0x49779d
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd0], 0
je 0x49779d
mov eax, dword [edi + 0x30]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0xd0]
jne 0x49779d
cmp byte [edi + 0x57], 0
jne 0x497792
test byte [edi + 0x1c], 0x10
je 0x49779d
mov eax, dword [ebp - 0x6c]
mov byte [eax + 0x10], 1
mov byte [ebp - 0x45], 0
inc dword [ebp - 0x4c]
dec dword [ebp - 0x68]
jne 0x49767e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4977ec
mov dword [ebp - 0x4c], eax
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea ebx, [edx + eax]
cmp byte [ebx + 0x10], 0
je 0x4977e3
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov eax, dword [eax + 0x1c]
test byte [eax + 0x60], 4
je 0x4977ec
mov byte [ebx + 0x10], 0
dec dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4977bb
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x497988
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov edi, dword [eax + 0x1c]
mov eax, edi
mov edx, dword [0x4916cc]
call fcn.00404248
mov ebx, eax
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea esi, [edx + eax]
cmp byte [esi + 0x10], 0
je 0x49797c
test bl, bl
jne 0x49796a
mov byte [ebp - 0x47], 0
test byte [edi + 0x3f], 1
je 0x497882
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
call fcn.0042b744
test al, 1
jne 0x497882
mov byte [ebp - 0x47], 1
mov eax, dword [ebp - 0x70]
call fcn.0042b744
mov edx, eax
or dl, byte [0x498244]
mov eax, dword [ebp - 0x70]
call fcn.0042b750
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x63], 0
mov edx, dword [ebp - 0x60]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test al, al
je 0x4978df
cmp byte [ebp - 0x31], 0
je 0x4978c3
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495ef8
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov dword [ebp - 0x60], eax
jmp 0x4978df
push edi
push 0
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov ecx, dword [ebp - 4]
mov dl, 1
call dword [eax + 0x48]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x63], 1
xor eax, eax
push ebp
push 0x497938
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 0xc]
push eax
lea ecx, [esi + 8]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x60]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
call dword [edx + 0x44]
test al, al
je 0x49791c
mov byte [esi + 0x14], 1
mov eax, dword [esi + 8]
cmp eax, dword [ebp - 0x50]
jle 0x49791c
mov eax, dword [esi + 8]
mov dword [ebp - 0x50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49793f
cmp byte [ebp - 0x63], 0
je 0x497937
mov eax, dword [ebp - 0x60]
call fcn.004040b0
ret
mov edi, dword [edi + 0xb0]
mov eax, dword [edi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0xc], eax
inc dword [ebp - 0x4c]
dec dword [ebp - 0x68]
jne 0x49780e
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4979ef
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
cmp byte [eax + 0x14], 0
je 0x4979ce
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 0x50]
jge 0x4979ce
mov edx, dword [ebp - 0x50]
mov dword [eax + 8], edx
cmp byte [ebp - 9], 1
je 0x4979de
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x10]
add dword [edx], eax
jmp 0x4979e7
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 0x10]
add dword [edx + 4], eax
inc dword [ebp - 0x4c]
dec dword [ebp - 0x68]
jne 0x4979b0
cmp byte [ebp - 9], 1
je 0x4979ff
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x54], eax
jmp 0x497a08
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x62], 0
cmp dword [ebp - 0x40], 0
je 0x497a20
cmp dword [ebp + 0x18], 0
jle 0x497a20
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp + 0x18]
jg 0x497a24
xor eax, eax
jmp 0x497a26
mov al, 1
mov byte [ebp - 0x61], al
cmp byte [ebp - 0x61], 0
je 0x497c70
mov eax, dword [ebp + 0x14]
sub dword [ebp + 0x18], eax
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp + 0x18]
jle 0x497c70
xor eax, eax
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x497a8a
mov dword [ebp - 0x4c], eax
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
cmp byte [edx + eax + 0x10], 0
je 0x497a81
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov eax, dword [eax + 0x1c]
test byte [eax + 0x60], 4
jne 0x497a81
inc dword [ebp - 0x58]
dec dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x497a5c
cmp dword [ebp - 0x58], 1
jle 0x497c70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x497b09
mov dword [ebp - 0x4c], eax
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
cmp byte [edx + eax + 0x10], 0
je 0x497b00
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov eax, dword [eax + 0x1c]
test byte [eax + 0x60], 4
je 0x497b09
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
mov byte [edx + eax + 0x10], 0
cmp byte [ebp - 9], 1
je 0x497aed
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 8]
sub dword [ebp - 0x54], eax
jmp 0x497bfc
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 0xc]
sub dword [ebp - 0x54], eax
jmp 0x497bfc
dec dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x497aa6
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], 0
je 0x497b27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
mov eax, dword [eax + 8]
dec eax
mov dword [ebp - 0x4c], eax
jmp 0x497b34
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x497c70
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], 0
je 0x497b6a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb0]
mov edx, dword [ebp - 0x4c]
call fcn.0041ecd4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
call fcn.0049568c
mov esi, eax
jmp 0x497b7b
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov dword [ebp - 0x60], eax
mov esi, dword [ebp - 0x4c]
imul eax, esi, 0x15
mov edx, dword [ebp - 8]
cmp byte [edx + eax + 0x10], 0
je 0x497bed
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x1c]
test byte [eax + 0x60], 4
jne 0x497bed
imul eax, esi, 0x15
mov edx, dword [ebp - 8]
mov byte [edx + eax + 0x10], 0
imul eax, esi, 0x15
mov edx, dword [ebp - 8]
mov byte [edx + eax + 0x11], 1
cmp byte [ebp - 9], 1
je 0x497bbf
imul eax, esi, 0x15
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 8]
sub dword [ebp - 0x54], eax
jmp 0x497bcc
imul eax, esi, 0x15
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax + 0xc]
sub dword [ebp - 0x54], eax
cmp byte [ebp - 0x62], 0
jne 0x497bfc
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x1c]
mov edx, dword [0x4916cc]
call fcn.00404248
test al, al
jne 0x497bfc
mov byte [ebp - 0x62], 1
jmp 0x497bfc
dec dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 0
jge 0x497b3e
jmp 0x497c70
mov byte [ebp - 0x45], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x497c64
inc eax
mov dword [ebp - 0x68], eax
xor esi, esi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00495db0
mov edi, dword [eax + 0x1c]
imul eax, esi, 0x15
mov edx, dword [ebp - 8]
lea ebx, [edx + eax]
cmp byte [ebx + 0x10], 0
je 0x497c5e
test byte [edi + 0x60], 4
setne al
and al, byte [ebp - 0x45]
je 0x497c54
mov byte [ebx + 0x10], 0
cmp byte [ebp - 9], 1
je 0x497c4e
mov eax, dword [ebx + 8]
sub dword [ebp - 0x54], eax
jmp 0x497c54
mov eax, dword [ebx + 0xc]
sub dword [ebp - 0x54], eax
test byte [edi + 0x60], 4
setne al
mov byte [ebp - 0x45], al
inc esi
dec dword [ebp - 0x68]
jne 0x497c14
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp + 0x18]
jg 0x497a45
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x497cb3
mov dword [ebp - 0x4c], eax
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea ebx, [edx + eax]
cmp byte [ebx + 0x10], 0
je 0x497caa
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov eax, dword [eax + 0x1c]
test byte [eax + 0x60], 4
je 0x497cb3
mov byte [ebx + 0x10], 0
dec dword [ebp - 0x4c]
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x497c82
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x497d12
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
cmp byte [eax + 0x10], 0
je 0x497d0a
cmp byte [ebp - 9], 1
je 0x497cf8
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edx, dword [ecx + 4]
jle 0x497d0a
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], eax
jmp 0x497d0a
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 0x10]
cmp edx, dword [ecx]
jle 0x497d0a
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
inc dword [ebp - 0x4c]
dec dword [ebp - 0x68]
jne 0x497ccc
lea ecx, [ebp - 0x84]
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x1c], 0
jle 0x497d4b
mov eax, dword [ebp - 0x7c]
sub dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], 1
jge 0x497d4b
mov dword [ebp + 0x1c], 1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x81]
mov byte [ebp - 0x46], al
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x497e47
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov edi, dword [eax + 0x1c]
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea esi, [edx + eax]
cmp byte [esi + 0x10], 0
je 0x497e3b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x81], 0
jne 0x497dc7
test byte [edi + 0x40], 2
jne 0x497dc7
xor ebx, ebx
jmp 0x497dc9
mov bl, 1
cmp byte [ebp - 0x46], 0
je 0x497de2
test bl, bl
jne 0x497de2
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x46], bl
push ebp
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
add edx, eax
mov eax, dword [ebp - 0x4c]
call fcn.00497358
pop ecx
test bl, bl
je 0x497e0c
cmp byte [ebp - 9], 1
je 0x497e0c
mov eax, dword [esi + 8]
sub eax, dword [esi]
add dword [ebp - 0x20], eax
jmp 0x497e15
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
add dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx]
jle 0x497e27
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 4]
jle 0x497e3b
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [edx + 4], eax
inc dword [ebp - 0x4c]
dec dword [ebp - 0x68]
jne 0x497d8f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
cmp dword [eax + 8], 0
je 0x497e66
push ebp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
mov dl, 1
call fcn.004970d8
pop ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x7c]
add dword [eax], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x78]
add dword [eax + 4], edx
cmp byte [ebp - 9], 1
jne 0x497e84
push ebp
call fcn.00496efc
pop ecx
push ebp
call fcn.00496f4c
pop ecx
cmp byte [ebp - 0x31], 0
je 0x497f83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x497f83
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov edi, dword [eax + 0x1c]
mov eax, edi
mov edx, dword [0x4916cc]
call fcn.00404248
test al, al
je 0x497f77
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
cmp byte [edx + eax + 0x10], 0
je 0x497f23
mov edi, dword [edi + 0xb0]
lea edx, [ebp - 0x94]
mov eax, edi
call fcn.00468900
lea eax, [ebp - 0x94]
push eax
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
call sub.user32.dll_EqualRect
test eax, eax
jne 0x497f77
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
add edx, eax
mov eax, edi
call fcn.00468920
jmp 0x497f77
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
cmp byte [edx + eax + 0x11], 0
jne 0x497f3f
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
cmp byte [edx + eax + 0x13], 0
je 0x497f77
mov edi, dword [edi + 0xb0]
mov eax, dword [edi + 0x48]
push eax
mov eax, dword [edi + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
call fcn.004689a8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xd0]
call fcn.00468964
mov edx, eax
mov eax, edi
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0x84]
inc dword [ebp - 0x4c]
dec dword [ebp - 0x68]
jne 0x497eb2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x81], 0
je 0x497ff3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x497ff3
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov edi, dword [eax + 0x1c]
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
cmp byte [eax + 0x10], 0
je 0x497feb
test byte [edi + 0x60], 4
je 0x497feb
cmp byte [eax + 0x12], 0
je 0x497feb
cmp byte [ebp - 9], 1
je 0x497fe2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov dword [eax + 8], edx
jmp 0x497feb
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 4]
mov dword [eax + 0xc], edx
inc dword [ebp - 0x4c]
dec dword [ebp - 0x68]
jne 0x497fa8
cmp byte [ebp - 0x61], 0
je 0x4980bf
cmp byte [ebp - 0x31], 0
je 0x49800e
mov dl, byte [ebp - 0x62]
mov eax, dword [ebp - 0x40]
call fcn.00493b88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
imul eax, dword [eax + 8], 0x15
mov edx, dword [ebp - 8]
mov byte [edx + eax - 5], 1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
cmp byte [ebp - 9], 1
je 0x498076
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x4c]
jle 0x49803e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp - 0x4c]
call fcn.0041d57c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
imul eax, dword [eax + 8], 0x15
mov edx, dword [ebp - 8]
lea esi, [ebp - 0x94]
lea edi, [edx + eax - 0x15]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4980bf
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 0x4c]
jle 0x49808a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x4c]
xor eax, eax
call fcn.0041d57c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
imul eax, dword [eax + 8], 0x15
mov edx, dword [ebp - 8]
lea esi, [ebp - 0x94]
lea edi, [edx + eax - 0x15]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x32], 0
cmp byte [ebp - 0x31], 0
je 0x498180
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x498180
inc eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00495db0
mov dword [ebp - 0x60], eax
imul eax, dword [ebp - 0x4c], 0x15
mov edx, dword [ebp - 8]
lea ebx, [edx + eax]
cmp byte [ebp - 0x32], 0
jne 0x498137
push ebx
mov eax, dword [ebp - 0x60]
add eax, 4
push eax
call sub.user32.dll_EqualRect
test eax, eax
je 0x498133
mov eax, dword [ebp - 0x60]
mov al, byte [eax + 0x21]
cmp al, byte [ebx + 0x10]
jne 0x498133
mov eax, dword [ebp - 0x60]
test byte [eax + 0x2c], 2
setne al
cmp al, byte [ebx + 0x12]
je 0x498137
mov byte [ebp - 0x32], 1
mov eax, dword [ebp - 0x60]
mov esi, ebx
lea edi, [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov al, byte [ebx + 0x10]
mov edx, dword [ebp - 0x60]
mov byte [edx + 0x21], al
mov al, byte [ebx + 0x11]
mov edx, dword [ebp - 0x60]
mov byte [edx + 0x20], al
mov al, byte [ebx + 0x13]
mov edx, dword [ebp - 0x60]
mov byte [edx + 0x14], al
cmp byte [ebx + 0x12], 0
je 0x49816d
mov eax, dword [ebp - 0x60]
or byte [eax + 0x2c], 2
jmp 0x498174
mov eax, dword [ebp - 0x60]
and byte [eax + 0x2c], 0xfd
inc dword [ebp - 0x4c]
dec dword [ebp - 0x68]
jne 0x4980ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4981ca
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x39]
mov byte [eax + 0xb4], dl
cmp dword [ebp - 0x44], 0
je 0x4981a9
xor edx, edx
mov eax, dword [ebp - 0x44]
call fcn.0042c8d4
cmp dword [ebp - 0x38], 0
je 0x4981ba
mov eax, dword [ebp - 0x38]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebp - 0x44]
call fcn.004040b0
ret