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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
lea edi, [ebp - 0x5c]
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 - 8], edx
mov dword [ebp - 4], eax
lea edi, [ebp - 0xf0]
xor eax, eax
push ebp
push 0x4c47db
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4c47ec
mov edx, 0x4c47f4
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x264]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x150]
mov dl, 1
mov eax, dword [0x428074]
call fcn.0042e174
mov dword [ebp - 0x3c], eax
cmp byte [0x4db838], 0
je 0x4c3642
mov eax, dword [ebp - 4]
cmp byte [eax + 0x37d], 1
je 0x4c3636
mov eax, dword [ebp - 4]
test byte [eax + 0x239], 2
jne 0x4c3636
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 1
je 0x4c3642
mov dl, 7
mov eax, dword [ebp - 0x3c]
call fcn.0042f7b4
jmp 0x4c364d
mov dl, byte [ebp + 8]
mov eax, dword [ebp - 0x3c]
call fcn.0042f7b4
mov eax, edi
xor ecx, ecx
mov edx, 0x94
call fcn.0040355c
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
mov dword [edi], eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.00429c98
xor eax, eax
push ebp
push 0x4c4795
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
add eax, 0x26c
call fcn.004a4470
mov eax, dword [ebp - 4]
call fcn.004c2dbc
test al, al
je 0x4c36af
lea eax, [ebp - 0x120]
push eax
call sub.user32.dll_IsRectEmpty
test eax, eax
je 0x4c36b3
xor eax, eax
jmp 0x4c36b5
mov al, 1
mov byte [ebp - 0x11], al
push 0
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.00466b08
cdq
push edx
push eax
call fcn.00430890
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041b668
mov edx, dword [ebp - 0x54]
sub edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 8]
call fcn.0042a0e0
push eax
call sub.gdi32.dll_GetMapMode
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SetMapMode
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x10
je 0x4c3749
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e8]
mov eax, dword [eax + 0xc]
mov edx, dword [0x428074]
call fcn.00403e24
test al, al
je 0x4c3749
test byte [ebp + 0xc], 1
jne 0x4c374d
xor eax, eax
jmp 0x4c374f
mov al, 1
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x33c], 0
setne byte [ebp - 0x13]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x340], 0
setne byte [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34c], 0
je 0x4c3789
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0x11], 2
jne 0x4c378d
xor eax, eax
jmp 0x4c378f
mov al, 1
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
call fcn.004ac7d4
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x80
jne 0x4c37d1
mov eax, dword [ebp - 4]
mov si, 0xffb5
call fcn.00403e94
test al, al
jne 0x4c37d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 2
je 0x4c37d5
and byte [ebp + 0xc], 0xf7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 1
je 0x4c37e8
and byte [ebp + 0xc], 0xfb
xor eax, eax
mov dword [ebp - 0x38], eax
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x58]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004c24f0
mov dword [edi + 8], eax
cmp byte [ebp - 0x11], 0
je 0x4c381d
mov eax, dword [ebp - 0x38]
neg eax
push eax
push 0
lea eax, [ebp - 0x120]
push eax
call sub.user32.dll_OffsetRect
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x10]
add eax, ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x58]
sub eax, esi
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
push 0
lea eax, [ebp - 0x110]
push eax
sub esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
sub edx, esi
mov ecx, dword [ebp - 0x40]
mov eax, ebx
call fcn.0041b668
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x4c], 0xfffffffe
cmp dword [edi + 8], 0
je 0x4c4257
lea ecx, [ebp - 0x30]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
call fcn.004b05e8
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
call fcn.00405d28
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
call fcn.00405d28
mov ebx, eax
mov eax, dword [ebp - 4]
imul ebx, dword [eax + 0x220]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x334]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x220]
sub edx, eax
mov dword [ebp - 0x124], edx
fild dword [ebp - 0x124]
fdiv dword [0x4c47fc]
call fcn.00403354
add ebx, eax
mov eax, dword [ebp - 4]
sub ebx, dword [eax + 0x220]
mov dword [ebp - 0x24], ebx
jmp 0x4c424d
mov eax, dword [edi + 8]
test byte [eax + 0xa], 1
jne 0x4c38fb
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2ec]
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4c3907
inc dword [ebp - 0x48]
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.004c3064
lea ecx, [ebp - 0x12c]
mov edx, dword [ebp - 0x38]
and edx, 1
mov eax, dword [ebp - 0x5c]
and eax, 1
call fcn.0041b640
mov eax, dword [ebp - 0x12c]
mov dword [edi + 0x3a], eax
mov eax, dword [ebp - 0x128]
mov dword [edi + 0x3e], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add dword [ebp - 0x38], eax
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add eax, dword [ebp - 0x10c]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x48], 0
jg 0x4c396a
test byte [ebp + 0xc], 0x80
jne 0x4c4107
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [edi + 8]
movzx edx, word [edx + 8]
cmp eax, edx
je 0x4c39be
xor edx, edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [edi + 8]
movzx edx, word [eax + 8]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
mov dword [ebp - 0xf4], eax
push 0
mov eax, dword [edi + 0x3e]
push eax
mov eax, dword [edi + 0x3a]
push eax
mov eax, dword [edi]
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SetBrushOrgEx
mov eax, dword [edi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov cl, byte [ebp - 0x14]
mov dl, byte [ebp - 0x13]
mov eax, dword [ebp - 4]
call fcn.004aef14
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x14c]
test al, al
jne 0x4c4079
mov al, byte [ebp + 0xc]
mov byte [edi + 4], al
push 1
mov eax, dword [ebp - 0x104]
push eax
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x5c]
call fcn.0041b668
lea eax, [ebp - 0x13c]
push eax
mov edx, edi
mov cl, byte [ebp - 0x12]
mov eax, dword [ebp - 4]
call fcn.004afb34
push edi
lea esi, [ebp - 0x100]
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 - 0x16], 0
je 0x4c3a68
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004b0590
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov ebx, dword [eax + 8]
jmp 0x4c4010
cmp byte [ebp - 0x16], 0
je 0x4c3ab9
mov eax, dword [ebx + 0x30]
mov edx, dword [edi + 0x10]
mov eax, dword [eax + edx*4]
mov dword [edi + 0xc], eax
cmp dword [ebp - 0x4c], 0xfffffffe
jne 0x4c3a97
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x4c], eax
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004aa64c
mov al, byte [eax + 0x30]
mov byte [edi + 0x39], al
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004aa64c
mov al, byte [eax + 0x44]
mov byte [edi + 0x38], al
jmp 0x4c3ad5
mov dword [edi + 0xc], 0xffffffff
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x5f]
mov byte [edi + 0x39], al
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x37e]
mov byte [edi + 0x38], al
mov al, byte [ebp + 0xc]
mov byte [edi + 4], al
mov eax, dword [ebp - 4]
test byte [eax + 0x235], 8
je 0x4c3b0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [edi + 8]
jne 0x4c3b0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [edi + 0xc]
je 0x4c3b09
cmp byte [ebp - 0x16], 0
jne 0x4c3b0d
and byte [edi + 4], 0xf7
cmp byte [ebp - 0x16], 0
je 0x4c3b41
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4c3b31
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xf], 4
je 0x4c3b31
test byte [edi + 4], 8
jne 0x4c3b41
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004aa64c
test byte [eax + 0x3c], 0x10
je 0x4c3b45
and byte [edi + 4], 0xfd
mov eax, dword [ebx + 0x18]
call fcn.004ac7b8
cmp eax, dword [edi + 0xc]
sete byte [ebp - 0x17]
cmp byte [edi + 0x39], 0
je 0x4c3b62
lea eax, [edi + 0x38]
call fcn.00463ebc
cmp byte [ebp - 0x16], 0
je 0x4c3b7c
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004aa64c
test byte [eax + 0x3c], 0x80
je 0x4c3f9d
test byte [ebp + 0xc], 0x40
setne al
xor al, 1
or al, byte [ebp - 0x17]
je 0x4c3f9d
lea ecx, [ebp - 0x34]
mov edx, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xd4]
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp - 0x5c]
jle 0x4c3f91
mov eax, dword [edi]
push eax
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x1dc]
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 + 0x39], 0
je 0x4c3be1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
sub dword [edi + 0x2c], eax
jmp 0x4c3bed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ec]
add dword [edi + 0x24], eax
mov al, byte [ebp - 0x15]
and al, byte [ebp - 0x17]
je 0x4c3c32
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2a4]
mov dword [edi + 0x6c], eax
cmp dword [edi + 0x6c], 0xffffffff
jle 0x4c3c39
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x6c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34c]
mov cl, byte [edi + 0x39]
mov eax, dword [ebp - 4]
call fcn.004aedf8
mov byte [edi + 0x78], 0
jmp 0x4c3c39
mov dword [edi + 0x6c], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x4c3c82
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x340]
push eax
mov edx, edi
mov cl, 2
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2b8]
cmp dword [edi + 0x58], 0xffffffff
jle 0x4c3c89
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x58]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x340]
mov cl, byte [edi + 0x39]
mov eax, dword [ebp - 4]
call fcn.004aedf8
jmp 0x4c3c89
mov dword [edi + 0x58], 0xffffffff
cmp byte [ebp - 0x13], 0
je 0x4c3ce3
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x33c]
push eax
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
setne al
and eax, 0x7f
mov cl, byte [eax + 0x4d6448]
mov edx, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x2b8]
cmp dword [edi + 0x44], 0xffffffff
jle 0x4c3cea
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [edi + 0x44]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x33c]
mov cl, byte [edi + 0x39]
mov eax, dword [ebp - 4]
call fcn.004aedf8
jmp 0x4c3cea
mov dword [edi + 0x44], 0xffffffff
cmp byte [ebp - 0x17], 0
je 0x4c3cfd
mov edx, edi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004aedcc
cmp byte [ebp - 0x16], 0
je 0x4c3d12
push 0
lea ecx, [edi + 0x14]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
call fcn.004b0964
test byte [edi + 4], 0x20
je 0x4c3dd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x80
je 0x4c3dd8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x36c]
mov edx, 4
call fcn.004ae858
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.00429044
cmp byte [ebp - 0x17], 0
je 0x4c3db9
mov eax, dword [ebp - 4]
cmp byte [eax + 0x373], 1
jne 0x4c3db9
cmp byte [edi + 0x39], 0
jne 0x4c3d8f
mov eax, dword [edi + 0x1c]
dec eax
push eax
mov eax, dword [edi + 0x20]
dec eax
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x220]
imul ecx, dword [ebp - 0x20]
add ecx, dword [edi + 0x14]
mov edx, edi
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x28c]
jmp 0x4c3dd2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
imul dword [ebp - 0x20]
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 - 4]
mov esi, dword [eax]
call dword [esi + 0x28c]
jmp 0x4c3dd2
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 - 4]
mov esi, dword [eax]
call dword [esi + 0x28c]
dec dword [edi + 0x20]
dec dword [edi + 0x30]
cmp byte [ebp - 0x16], 0
je 0x4c3e66
test byte [edi + 4], 0x20
je 0x4c3e66
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4c3e66
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x4c3e0d
mov eax, ebx
call fcn.0041ddcc
dec eax
cmp eax, dword [edi + 0x10]
jbe 0x4c3e66
cmp byte [edi + 0x39], 0
je 0x4c3e28
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x104]
test al, al
jne 0x4c3e60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x36c]
mov edx, 4
call fcn.004ae858
mov edx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
call fcn.00429044
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 - 4]
mov esi, dword [eax]
call dword [esi + 0x290]
dec dword [edi + 0x1c]
dec dword [edi + 0x2c]
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004b1080
cmp byte [ebp - 0x17], 0
je 0x4c3f10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 2
je 0x4c3ead
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x320]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x20
je 0x4c3efd
mov eax, dword [edi + 8]
test byte [eax + 0xa], 0x40
je 0x4c3efd
mov eax, dword [edi + 8]
test byte [eax + 0xb], 4
je 0x4c3edd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xd], 0x80
jne 0x4c3efd
lea eax, [edi + 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov al, byte [edi + 0x39]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x31c]
cmp dword [edi + 0x6c], 0xffffffff
jle 0x4c3f10
mov edx, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x314]
cmp dword [edi + 0x58], 0xffffffff
jle 0x4c3f27
push 0
mov edx, edi
mov cl, 1
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x318]
cmp dword [edi + 0x44], 0xffffffff
jle 0x4c3f3e
push 1
mov edx, edi
xor ecx, ecx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x318]
mov eax, dword [ebp - 4]
test byte [eax + 0x235], 8
je 0x4c3f6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x240]
cmp eax, dword [edi + 8]
jne 0x4c3f6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
cmp eax, dword [edi + 0xc]
je 0x4c3f79
cmp byte [ebp - 0x16], 0
je 0x4c3f79
mov edx, edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x244]
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 - 4]
mov esi, dword [eax]
call dword [esi + 0x12c]
cmp byte [ebp - 0x16], 0
je 0x4c4028
jmp 0x4c3faa
mov edx, dword [edi + 0xc]
mov eax, ebx
call fcn.004ab9ac
mov dword [ebp - 0x34], eax
push 0
mov eax, dword [edi]
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SelectClipRgn
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x54]
jge 0x4c4028
cmp dword [ebp - 0x34], 0xfffffffe
je 0x4c4028
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.004aa64c
mov eax, dword [eax + 0x1c]
mov dword [edi + 0x10], eax
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.004aa64c
test byte [eax + 0x3c], 0x80
je 0x4c4010
mov edx, dword [ebp - 0x34]
mov eax, ebx
call fcn.004aa64c
lea ecx, [edi + 0x1c]
lea edx, [edi + 0x14]
call fcn.004a9dd4
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 0x4c401c
cmp byte [ebp - 0x16], 0
jne 0x4c4028
mov eax, dword [edi + 0x14]
cmp eax, dword [ebp - 0x54]
jl 0x4c3a79
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x134]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
cmp eax, dword [edi + 8]
jne 0x4c4079
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 8], 0x40
je 0x4c4079
test byte [edi + 4], 0x10
je 0x4c4079
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [edi + 8]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x240]
cmp byte [ebp - 0x11], 0
je 0x4c40c0
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041b668
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x324]
push 0xcc0020
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
call fcn.0042a0e0
push eax
call sub.gdi32.dll_BitBlt
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
add dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x44]
jge 0x4c4257
cmp byte [ebp - 0x11], 0
je 0x4c4141
mov eax, dword [edi + 8]
movzx eax, word [eax + 8]
neg eax
push eax
push 0
lea eax, [ebp - 0x120]
push eax
call sub.user32.dll_OffsetRect
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
call fcn.004c2348
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4c4247
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
cmp eax, dword [edi + 8]
jne 0x4c41cc
cmp dword [ebp - 0x20], 0
jle 0x4c4191
mov edx, dword [edi + 8]
mov eax, dword [ebp - 4]
call fcn.004b0550
test al, al
je 0x4c4186
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx - 1], 2
jmp 0x4c4191
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx - 1], 0
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
call fcn.00405d28
cmp eax, dword [ebp - 0x20]
jg 0x4c41be
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
lea eax, [ebp - 0x30]
mov ecx, 1
mov edx, dword [0x49dbd0]
call fcn.00405f04
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
add dword [ebp - 0x24], eax
jmp 0x4c421a
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4c41d8
dec dword [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x18]
mov edx, dword [edi + 8]
cmp eax, dword [edx + 0x18]
je 0x4c421a
jmp 0x4c420c
dec dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x220]
sub dword [ebp - 0x24], eax
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
test byte [eax + 0xb], 1
je 0x4c420c
dec dword [ebp - 0x48]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x2c]
cmp eax, dword [edx + 0x18]
jne 0x4c41e8
cmp dword [ebp - 0x20], 0
jle 0x4c4247
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004b0550
test al, al
je 0x4c423c
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx - 1], 3
jmp 0x4c4247
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x20]
mov byte [eax + edx - 1], 5
mov eax, dword [ebp - 0x2c]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
jne 0x4c38e4
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp - 0x44]
jge 0x4c4772
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0x110]
xor edx, edx
mov eax, dword [ebp - 0x110]
call fcn.0041b668
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x10]
xor edx, edx
xor eax, eax
call fcn.0041b668
xor edx, edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dl, 7
mov eax, dword [ebp - 0x3c]
call fcn.0042f7b4
mov edx, dword [ebp - 0x108]
sub edx, dword [ebp - 0x110]
inc edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x104]
sub edx, dword [ebp - 0x10c]
inc edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
mov edx, eax
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x23c]
test al, al
jne 0x4c46a0
cmp byte [ebp - 0x12], 0
je 0x4c43ce
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 0xa], 2
je 0x4c439c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e8]
call fcn.0042bfc8
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.004b25a8
jmp 0x4c46a0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2e8]
call fcn.0042bfc8
mov edx, eax
mov eax, dword [ebp - 4]
pop ecx
call fcn.004b2760
jmp 0x4c46a0
cmp byte [ebp - 0x16], 0
je 0x4c465e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x214]
mov ebx, dword [eax + 8]
cmp dword [ebp - 0x4c], 0xfffffffe
jne 0x4c444b
mov eax, ebx
call fcn.004ab8ec
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xfffffffe
je 0x4c4443
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004aa64c
call fcn.004a9374
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004aa64c
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x100]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf8]
cmp eax, dword [ebp - 0x110]
jg 0x4c4479
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004ab9ac
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xfffffffe
jne 0x4c43f4
jmp 0x4c4479
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004aa64c
call fcn.004a9374
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004aa64c
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x100]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x36c]
mov edx, 4
call fcn.004ae858
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
mov eax, dword [eax + 0xc]
pop edx
call fcn.00429044
jmp 0x4c45a0
test byte [ebp + 0xc], 0x20
je 0x4c4505
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4c4505
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4c4505
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
je 0x4c44dd
mov eax, ebx
call fcn.0041ddcc
dec eax
cmp eax, dword [ebp - 0x4c]
jbe 0x4c4505
mov eax, dword [ebp - 0xf4]
push eax
mov eax, dword [ebp - 0xf8]
dec eax
push eax
mov edx, edi
mov ecx, dword [ebp - 0xfc]
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0x290]
dec dword [ebp - 0xf8]
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004aa64c
test byte [eax + 0x3c], 0x10
jne 0x4c4536
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004aa64c
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
mov eax, dword [eax + 0x14]
pop edx
call fcn.00429810
jmp 0x4c454c
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.00429810
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
lea edx, [ebp - 0x100]
call fcn.00429be8
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004ab9ac
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xfffffffe
je 0x4c45a0
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004aa64c
call fcn.004a9374
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x4c]
mov eax, ebx
call fcn.004aa64c
mov eax, dword [eax + 0x18]
add eax, dword [ebp - 0x100]
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0x4c], 0xfffffffe
je 0x4c45bb
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x100]
jg 0x4c44a3
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xf8]
jle 0x4c4643
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xf8], eax
test byte [ebp + 0xc], 0x20
je 0x4c461a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 0x40
je 0x4c461a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x224]
test byte [eax + 9], 4
je 0x4c461a
mov eax, dword [ebx + 0x18]
test byte [eax + 0x15], 1
jne 0x4c461a
inc dword [ebp - 0x100]
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.00429810
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
lea edx, [ebp - 0x100]
call fcn.00429be8
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SetWindowOrgEx
jmp 0x4c46a0
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SetWindowOrgEx
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x70]
call fcn.00429810
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
lea edx, [ebp - 0x110]
call fcn.00429be8
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SetWindowOrgEx
cmp byte [ebp - 0x11], 0
je 0x4c4733
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 4]
add eax, 0x26c
call fcn.004a4470
mov eax, dword [ebp - 0xc]
neg eax
push eax
mov eax, dword [ebp - 0x10]
neg eax
add eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_OffsetRect
push 0
mov eax, dword [ebp - 0x10]
and eax, 1
push eax
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
call sub.gdi32.dll_SetBrushOrgEx
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x324]
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.0042a0e0
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0042a0e0
push eax
call sub.gdi32.dll_BitBlt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c479c
mov eax, dword [ebp - 0x3c]
call fcn.0042e744
call fcn.00429fd8
mov eax, dword [ebp - 0x3c]
call fcn.00403c8c
ret