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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
lea edi, [ebp - 0x68]
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 dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea edi, [ebp - 0xfc]
xor eax, eax
push ebp
push 0x586d2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
test byte [eax + 0x29f], 0x80
jne 0x586d10
mov ecx, 0x586d3c
mov edx, 0x586d44
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x298]
xor eax, eax
push ebp
push 0x586d09
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x174]
mov dl, 1
mov eax, dword [0x458764]
call fcn.004623cc
mov dword [ebp - 0x38], eax
cmp byte [0x674940], 0
je 0x585b48
mov eax, dword [ebp - 8]
cmp byte [eax + 0x405], 1
je 0x585b3c
mov eax, dword [ebp - 8]
test byte [eax + 0x2a1], 0x80
jne 0x585b3c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xa], 1
je 0x585b48
mov dl, 7
mov eax, dword [ebp - 0x38]
call fcn.00464048
jmp 0x585b54
movzx edx, byte [ebp + 8]
mov eax, dword [ebp - 0x38]
call fcn.00464048
mov eax, edi
xor ecx, ecx
mov edx, 0x94
call fcn.004049ec
mov eax, dword [ebp - 0x38]
call fcn.00462cec
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045be24
xor eax, eax
push ebp
push 0x586cd1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 8]
add eax, 0x2ec
call fcn.0055bfa8
mov eax, dword [ebp - 8]
call fcn.00584ea0
test al, al
je 0x585bb6
lea eax, [ebp - 0x12c]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x585bba
xor eax, eax
jmp 0x585bbc
mov al, 1
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 8]
call fcn.004bb830
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x458]
xor edx, edx
cmp edx, dword [ebp - 0x4c]
jne 0x585be5
cmp eax, dword [ebp - 0x50]
jbe 0x585bfa
jmp 0x585be7
jle 0x585bfa
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x458]
xor edx, edx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
jmp 0x585c06
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
push 0
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x58]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00437948
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.0045ce14
push eax
call sub.gdi32.dll_GetMapMode
push eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
call sub.gdi32.dll_SetMapMode
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 8], 0x10
je 0x585c7d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x36c]
mov eax, dword [eax + 0xc]
mov edx, dword [0x458764]
call fcn.00405280
test al, al
je 0x585c7d
test byte [ebp + 0xc], 1
jne 0x585c81
xor eax, eax
jmp 0x585c83
mov al, 1
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3c8], 0
setne byte [ebp - 0x17]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3cc], 0
setne byte [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3d8], 0
je 0x585cbd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0x11], 2
jne 0x585cc1
xor eax, eax
jmp 0x585cc3
mov al, 1
mov byte [ebp - 0x19], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x27c]
call fcn.00566914
mov byte [ebp - 0x1a], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 9], 0x80
jne 0x585d05
mov eax, dword [ebp - 8]
mov si, 0xffb3
call fcn.00405324
test al, al
jne 0x585d09
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 8], 2
je 0x585d09
and byte [ebp + 0xc], 0xf7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 8], 1
je 0x585d1c
and byte [ebp + 0xc], 0xfb
xor eax, eax
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0058331c
mov ebx, eax
mov dword [edi + 8], ebx
test ebx, ebx
jne 0x585d43
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], eax
cmp byte [ebp - 0x15], 0
je 0x585d5d
mov eax, dword [ebp - 0x34]
neg eax
push eax
push 0
lea eax, [ebp - 0x12c]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x14]
add eax, ebx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x64]
sub eax, esi
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
push 0
lea eax, [ebp - 0x11c]
push eax
sub esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x10]
sub edx, esi
mov ecx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.00437948
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x48], 0xfffffffe
cmp dword [edi + 8], 0
je 0x586786
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3b8]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x288]
sub edx, eax
mov dword [ebp - 0x130], edx
fild dword [ebp - 0x130]
fdiv dword [0x586d4c]
call fcn.004047e4
mov dword [ebp - 0x28], eax
jmp 0x58677c
lea ecx, [ebp - 4]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
call fcn.0056ba88
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
call fcn.00408d00
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xa], 8
jne 0x585e57
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3b8]
mov edx, dword [eax]
call dword [edx + 0x30]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x288]
sub edx, eax
mov dword [ebp - 0x130], edx
fild dword [ebp - 0x130]
fdiv dword [0x586d4c]
call fcn.004047e4
mov edx, dword [ebp - 0x24]
dec edx
mov ecx, dword [ebp - 8]
imul edx, dword [ecx + 0x288]
add eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 8]
test byte [eax + 0xa], 1
jne 0x585e6e
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x324]
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x585e89
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xa], 4
jne 0x585e89
inc dword [ebp - 0x44]
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
call fcn.00585414
lea ecx, [ebp - 0x138]
mov edx, dword [ebp - 0x34]
and edx, 1
mov eax, dword [ebp - 0x68]
and eax, 1
call fcn.00437918
mov eax, dword [ebp - 0x138]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x134]
mov dword [edi + 0x40], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add dword [ebp - 0x34], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add eax, dword [ebp - 0x118]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x44], 0
jg 0x585eec
test byte [ebp + 0xc], 0x80
jne 0x586736
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x24]
mov edx, dword [edi + 8]
movzx edx, word [edx + 8]
cmp eax, edx
je 0x585f40
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [edi + 8]
movzx edx, word [eax + 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
mov dword [ebp - 0x100], eax
push 0
mov eax, dword [edi + 0x40]
push eax
mov eax, dword [edi + 0x3c]
push eax
mov eax, dword [edi]
call fcn.0045ce14
push eax
call sub.gdi32.dll_SetBrushOrgEx
mov eax, dword [edi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
movzx ecx, byte [ebp - 0x18]
movzx edx, byte [ebp - 0x17]
mov eax, dword [ebp - 8]
call fcn.0056aa44
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x170]
test al, al
jne 0x5866a8
movzx eax, byte [ebp + 0xc]
mov byte [edi + 4], al
push 1
mov eax, dword [ebp - 0x110]
push eax
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x68]
call fcn.00437948
lea eax, [ebp - 0x148]
push eax
mov edx, edi
movzx ecx, byte [ebp - 0x16]
mov eax, dword [ebp - 8]
call fcn.0056b624
push edi
lea esi, [ebp - 0x10c]
add edi, 0x14
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
cmp byte [ebp - 0x1a], 0
je 0x585fee
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0056c850
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x27c]
mov ebx, dword [eax + 8]
jmp 0x58663f
cmp byte [ebp - 0x1a], 0
je 0x586041
mov eax, dword [ebx + 0x30]
mov edx, dword [edi + 0x10]
mov eax, dword [eax + edx*4]
mov dword [edi + 0xc], eax
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x58601d
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x48], eax
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.00563fe0
movzx eax, byte [eax + 0x30]
mov byte [edi + 0x3a], al
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.00563fe0
movzx eax, byte [eax + 0x44]
mov byte [edi + 0x38], al
jmp 0x58605f
mov dword [edi + 0xc], 0xffffffff
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x61]
mov byte [edi + 0x3a], al
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x406]
mov byte [edi + 0x38], al
movzx eax, byte [ebp + 0xc]
mov byte [edi + 4], al
mov eax, dword [ebp - 8]
test byte [eax + 0x29d], 8
je 0x586098
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2a8]
cmp eax, dword [edi + 8]
jne 0x586098
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2ac]
cmp eax, dword [edi + 0xc]
je 0x586094
cmp byte [ebp - 0x1a], 0
jne 0x586098
and byte [edi + 4], 0xf7
cmp byte [ebp - 0x1a], 0
je 0x5860cc
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x5860bc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xf], 4
je 0x5860bc
test byte [edi + 4], 8
jne 0x5860cc
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.00563fe0
test byte [eax + 0x3c], 0x10
je 0x5860d0
and byte [edi + 4], 0xfd
mov eax, dword [ebx + 0x18]
call fcn.005668f8
cmp eax, dword [edi + 0xc]
sete byte [ebp - 0x1b]
cmp byte [edi + 0x3a], 0
je 0x5860ed
lea eax, [edi + 0x38]
call fcn.004b82ec
cmp byte [ebp - 0x1a], 0
je 0x586107
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.00563fe0
test byte [eax + 0x3c], 0x80
je 0x5865ca
test byte [ebp + 0xc], 0x40
setne al
xor al, 1
or al, byte [ebp - 0x1b]
je 0x5865ca
lea ecx, [ebp - 0x30]
mov edx, edi
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xf8]
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp - 0x68]
jle 0x5865be
mov eax, dword [edi]
push eax
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x208]
mov dword [edi + 0x34], eax
push edi
lea esi, [edi + 0x14]
add edi, 0x24
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
cmp byte [edi + 0x3a], 0
je 0x58616c
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x370]
sub dword [edi + 0x2c], eax
jmp 0x586178
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x370]
add dword [edi + 0x24], eax
movzx eax, byte [ebp - 0x19]
and al, byte [ebp - 0x1b]
je 0x5861c5
push 0
push 0
xor ecx, ecx
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x2dc]
mov dword [edi + 0x6c], eax
cmp dword [edi + 0x6c], 0xffffffff
jle 0x5861cc
mov eax, dword [ebp - 0x20]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x6c]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x3d8]
movzx ecx, byte [edi + 0x3a]
mov eax, dword [ebp - 8]
call fcn.0056a948
mov byte [edi + 0x78], 0
jmp 0x5861cc
mov dword [edi + 0x6c], 0xffffffff
cmp byte [ebp - 0x18], 0
je 0x586216
push 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3cc]
push eax
mov edx, edi
mov cl, 2
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x2f0]
cmp dword [edi + 0x58], 0xffffffff
jle 0x58621d
mov eax, dword [ebp - 0x20]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x58]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x3cc]
movzx ecx, byte [edi + 0x3a]
mov eax, dword [ebp - 8]
call fcn.0056a948
jmp 0x58621d
mov dword [edi + 0x58], 0xffffffff
cmp byte [ebp - 0x17], 0
je 0x586279
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c8]
push eax
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
setne al
and eax, 0x7f
movzx ecx, byte [eax + 0x5eac4c]
mov edx, edi
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x2f0]
cmp dword [edi + 0x44], 0xffffffff
jle 0x586280
mov eax, dword [ebp - 0x20]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x44]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x3c8]
movzx ecx, byte [edi + 0x3a]
mov eax, dword [ebp - 8]
call fcn.0056a948
jmp 0x586280
mov dword [edi + 0x44], 0xffffffff
cmp byte [ebp - 0x1b], 0
je 0x5862af
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x24]
mov edx, 1
call fcn.0040ec18
mov ecx, eax
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0056a91c
cmp byte [ebp - 0x1a], 0
je 0x5862c4
push 0
lea ecx, [edi + 0x14]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
call fcn.0056ca88
test byte [edi + 4], 0x20
je 0x5863c8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 8], 0x80
je 0x5863c8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3f4]
mov edx, 4
call fcn.0056a348
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
call fcn.0045b0b8
cmp byte [ebp - 0x1b], 0
je 0x5863a9
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3fb], 1
jne 0x5863a9
cmp byte [edi + 0x3a], 0
jne 0x586365
mov eax, dword [edi + 0x1c]
dec eax
push eax
mov eax, dword [edi + 0x20]
dec eax
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x24]
mov edx, 1
call fcn.0040ec18
mov ecx, eax
mov eax, dword [ebp - 8]
imul ecx, dword [eax + 0x288]
add ecx, dword [edi + 0x14]
mov edx, edi
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x2c4]
jmp 0x5863c2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x24]
mov edx, 1
call fcn.0040ec18
mov edx, dword [ebp - 8]
imul dword [edx + 0x288]
mov edx, dword [edi + 0x1c]
sub edx, eax
dec edx
push edx
mov eax, dword [edi + 0x20]
dec eax
push eax
mov edx, edi
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x2c4]
jmp 0x5863c2
mov eax, dword [edi + 0x1c]
push eax
mov eax, dword [edi + 0x20]
dec eax
push eax
mov edx, edi
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x2c4]
dec dword [edi + 0x20]
dec dword [edi + 0x30]
cmp byte [ebp - 0x1a], 0
je 0x586456
test byte [edi + 4], 0x20
je 0x586456
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 9], 4
je 0x586456
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x5863fd
mov eax, ebx
call fcn.00563fd8
dec eax
cmp eax, dword [edi + 0x10]
jbe 0x586456
cmp byte [edi + 0x3a], 0
je 0x586418
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x124]
test al, al
jne 0x586450
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3f4]
mov edx, 4
call fcn.0056a348
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0x40]
call fcn.0045b0b8
mov eax, dword [edi + 0x20]
push eax
mov eax, dword [edi + 0x1c]
dec eax
push eax
mov edx, edi
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x2c8]
dec dword [edi + 0x1c]
dec dword [edi + 0x2c]
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x364]
cmp byte [ebp - 0x1b], 0
je 0x58653d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 9], 2
je 0x5864d5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xa], 0x20
je 0x5864a3
mov eax, dword [ebp - 8]
test byte [eax + 0x2a1], 0x80
jne 0x5864d5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xa], 8
setne al
mov ecx, dword [ebp - 0x24]
mov edx, 1
call fcn.0040ec18
push eax
mov eax, dword [ebp - 4]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x358]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 8], 0x20
je 0x58652a
mov eax, dword [edi + 8]
test byte [eax + 0xa], 0x40
je 0x58652a
mov eax, dword [edi + 8]
test byte [eax + 0xb], 4
je 0x586505
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xd], 0x80
jne 0x58652a
mov eax, dword [edi + 0xc]
push eax
lea eax, [edi + 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
movzx eax, byte [edi + 0x3a]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x354]
cmp dword [edi + 0x6c], 0xffffffff
jle 0x58653d
mov edx, edi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34c]
cmp dword [edi + 0x58], 0xffffffff
jle 0x586554
push 0
mov edx, edi
mov cl, 1
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x350]
cmp dword [edi + 0x44], 0xffffffff
jle 0x58656b
push 1
mov edx, edi
xor ecx, ecx
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x350]
mov eax, dword [ebp - 8]
test byte [eax + 0x29d], 8
je 0x586599
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2a8]
cmp eax, dword [edi + 8]
jne 0x586599
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2ac]
cmp eax, dword [edi + 0xc]
je 0x5865a6
cmp byte [ebp - 0x1a], 0
je 0x5865a6
mov edx, edi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x278]
mov eax, dword [edi + 0xc]
push eax
lea eax, [edi + 0x14]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x150]
cmp byte [ebp - 0x1a], 0
je 0x586657
jmp 0x5865d9
xor ecx, ecx
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.00565768
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [edi]
call fcn.0045ce14
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x60]
jge 0x586657
cmp dword [ebp - 0x30], 0xfffffffe
je 0x586657
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00563fe0
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x10], eax
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00563fe0
test byte [eax + 0x3c], 0x80
je 0x58663f
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.00563fe0
lea ecx, [edi + 0x1c]
lea edx, [edi + 0x14]
call fcn.005636ac
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
mov dword [edi + 0x30], eax
cmp dword [edi + 0xc], 0xfffffffe
jg 0x58664b
cmp byte [ebp - 0x1a], 0
jne 0x586657
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x60]
jl 0x585fff
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x158]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x414]
cmp eax, dword [edi + 8]
jne 0x5866a8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 8], 0x40
je 0x5866a8
test byte [edi + 4], 0x10
je 0x5866a8
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x274]
cmp byte [ebp - 0x15], 0
je 0x5866ef
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.00437948
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [edi]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x35c]
push 0xcc0020
push 0
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [ebp - 0x118]
push eax
mov eax, dword [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0045ce14
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x40]
jge 0x586786
cmp byte [ebp - 0x15], 0
je 0x58676c
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
neg eax
push eax
push 0
lea eax, [ebp - 0x12c]
push eax
call sub.user32.dll_OffsetRect
mov cl, 1
mov edx, dword [edi + 8]
mov eax, dword [ebp - 8]
call fcn.00582bcc
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
jne 0x585de9
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x40]
jge 0x586cae
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x11c]
xor edx, edx
mov eax, dword [ebp - 0x11c]
call fcn.00437948
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x14]
xor edx, edx
xor eax, eax
call fcn.00437948
xor edx, edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dl, 7
mov eax, dword [ebp - 0x38]
call fcn.00464048
mov edx, dword [ebp - 0x114]
sub edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov edx, dword [ebp - 0x110]
sub edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.00462cec
mov edx, eax
lea ecx, [ebp - 0x11c]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x270]
test al, al
jne 0x586bd3
cmp byte [ebp - 0x16], 0
je 0x5868fb
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 0xa], 2
je 0x5868c9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x36c]
call fcn.0045f634
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.0056e864
jmp 0x586bd3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x36c]
call fcn.0045f634
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.0056ea10
jmp 0x586bd3
cmp byte [ebp - 0x1a], 0
je 0x586b91
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x27c]
mov ebx, dword [eax + 8]
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x58697c
xor edx, edx
mov eax, ebx
call fcn.0056566c
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x586974
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00563fe0
call fcn.00562824
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00563fe0
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x10c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
cmp eax, dword [ebp - 0x11c]
jg 0x5869aa
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00565768
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
jne 0x586923
jmp 0x5869aa
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00563fe0
call fcn.00562824
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00563fe0
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x10c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3f4]
mov edx, 4
call fcn.0056a348
push eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
mov eax, dword [eax + 0x40]
pop edx
call fcn.0045b0b8
jmp 0x586ad3
test byte [ebp + 0xc], 0x20
je 0x586a36
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 9], 0x40
je 0x586a36
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 9], 4
je 0x586a36
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x586a0e
mov eax, ebx
call fcn.00563fd8
dec eax
cmp eax, dword [ebp - 0x48]
jbe 0x586a36
mov eax, dword [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x104]
dec eax
push eax
mov edx, edi
mov ecx, dword [ebp - 0x108]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x2c8]
dec dword [ebp - 0x104]
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00563fe0
test byte [eax + 0x3c], 0x10
jne 0x586a67
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00563fe0
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
mov eax, dword [eax + 0x48]
pop edx
call fcn.0045bc0c
jmp 0x586a7d
mov eax, dword [ebp - 0x38]
call fcn.00462cec
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x6c]
call fcn.0045bc0c
mov eax, dword [ebp - 0x38]
call fcn.00462cec
lea edx, [ebp - 0x10c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00565768
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x586ad3
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00563fe0
call fcn.00562824
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.00563fe0
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x10c]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x48], 0xfffffffe
je 0x586aee
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10c]
jg 0x5869d4
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x104]
jle 0x586b76
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x114]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x104], eax
test byte [ebp + 0xc], 0x20
je 0x586b4d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 9], 0x40
je 0x586b4d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28c]
test byte [eax + 9], 4
je 0x586b4d
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
jne 0x586b4d
inc dword [ebp - 0x10c]
mov eax, dword [ebp - 0x38]
call fcn.00462cec
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x6c]
call fcn.0045bc0c
mov eax, dword [ebp - 0x38]
call fcn.00462cec
lea edx, [ebp - 0x10c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
call sub.gdi32.dll_SetWindowOrgEx
jmp 0x586bd3
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x38]
call fcn.00462cec
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x6c]
call fcn.0045bc0c
mov eax, dword [ebp - 0x38]
call fcn.00462cec
lea edx, [ebp - 0x11c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
push 0
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
call sub.gdi32.dll_SetWindowOrgEx
cmp byte [ebp - 0x15], 0
je 0x586c6f
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 8]
add eax, 0x2ec
call fcn.0055bfa8
mov eax, dword [ebp - 0x10]
neg eax
mov edx, dword [ebp - 8]
add eax, dword [edx + 0x450]
push eax
mov eax, dword [ebp - 0x14]
neg eax
add eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.user32.dll_OffsetRect
push 0
mov eax, dword [ebp - 0x14]
and eax, 1
push eax
push 0
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
call sub.gdi32.dll_SetBrushOrgEx
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x38]
call fcn.00462cec
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x35c]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045ce14
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0045ce14
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x586cd8
mov eax, dword [ebp - 0x38]
call fcn.00462cec
call fcn.0045bf28
mov eax, dword [ebp - 0x38]
call fcn.00405064
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x586d33
lea eax, [ebp - 4]
mov edx, dword [0x54b7e8]
call fcn.00408fe8
ret