Function at 0x474688
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x439
push 0
push 0
dec ecx
jne 0x474690
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4757af
push dword fs:[eax]
mov dword fs:[eax], esp
nop
nop
nop
nop
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4746dc
xor edx, ebx
lea edx, [ebp - 0x64]
mov eax, 0x4757c0
call fcn.00474558
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474719
xor edx, ebx
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x64]
call fcn.00473ee4
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474754
xor edx, ebx
lea eax, [ebp - 0x2100]
mov edx, dword [0x47d87c]
call fcn.00404acc
mov edx, dword [ebp - 0x2100]
lea ecx, [ebp - 0xbc]
mov eax, dword [ebp - 0x70]
call fcn.00474420
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4747a9
xor edx, ebx
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 4]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4747ea
xor edx, ebx
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 8]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x47482b
xor edx, ebx
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0xc]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x47486c
xor edx, ebx
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0x10]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4748ad
xor edx, ebx
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0x14]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4748ee
xor edx, ebx
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0x18]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x47492f
xor edx, ebx
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0x1c]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474970
xor edx, ebx
lea eax, [ebp - 0xb8]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0x20]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4749b4
xor edx, ebx
lea eax, [ebp - 0xb4]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0x24]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4749f8
xor edx, ebx
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0x28]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474a39
xor edx, ebx
lea eax, [ebp - 0x94]
mov edx, dword [ebp - 0xbc]
mov edx, dword [edx + 0x2c]
call fcn.004048dc
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474a7d
xor edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00408bd4
mov edx, eax
lea ecx, [ebp - 0x2104]
mov eax, dword [ebp - 0x10]
call fcn.0047433c
mov eax, dword [ebp - 0x2104]
lea edx, [ebp - 0xc]
call fcn.00473d80
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474ad3
xor edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00408bd4
mov edx, eax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00473c90
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474b18
xor edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00408bd4
mov edx, eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.0047433c
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474b5d
xor edx, ebx
lea ecx, [ebp - 0x2108]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.00474218
mov eax, dword [ebp - 0x2108]
lea edx, [ebp - 0x1c]
call fcn.00473e5c
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474bac
xor edx, ebx
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x2110]
mov eax, dword [ebp - 0x1c]
call fcn.00473ee4
mov eax, dword [ebp - 0x2110]
lea edx, [ebp - 0x210c]
call fcn.0047419c
mov eax, dword [ebp - 0x210c]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
call fcn.0047406c
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474c0f
xor edx, ebx
mov eax, dword [ebp - 0x64]
mov edx, 0x4757d0
call fcn.00404c54
jne 0x4751e3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474c61
xor edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00408bd4
mov edx, eax
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x94]
call fcn.00473c90
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474cac
xor edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00408bd4
mov edx, eax
lea ecx, [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
call fcn.0047433c
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474cf7
xor edx, ebx
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x474d06
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 0x20fa]
mov ecx, dword [ebp - 0x8c]
xchg ecx, eax
call fcn.00402e7c
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474d48
xor edx, ebx
lea ecx, [ebp - 0x215c]
xor edx, edx
mov eax, 0x4757dc
call fcn.00471854
mov edx, dword [ebp - 0x215c]
lea ecx, [ebp - 0x2158]
mov eax, 0x4757e8
call fcn.00471854
mov edx, dword [ebp - 0x2158]
lea ecx, [ebp - 0x2154]
mov eax, 0x4757f4
call fcn.00471854
mov edx, dword [ebp - 0x2154]
lea ecx, [ebp - 0x2150]
mov eax, 0x475800
call fcn.00471854
mov edx, dword [ebp - 0x2150]
lea ecx, [ebp - 0x214c]
mov eax, 0x4757f4
call fcn.00471854
mov edx, dword [ebp - 0x214c]
lea ecx, [ebp - 0x2148]
mov eax, 0x47580c
call fcn.00471854
mov edx, dword [ebp - 0x2148]
lea ecx, [ebp - 0x2144]
mov eax, 0x475818
call fcn.00471854
mov edx, dword [ebp - 0x2144]
lea ecx, [ebp - 0x2140]
mov eax, 0x475824
call fcn.00471854
mov edx, dword [ebp - 0x2140]
lea ecx, [ebp - 0x213c]
mov eax, 0x475830
call fcn.00471854
mov edx, dword [ebp - 0x213c]
lea ecx, [ebp - 0x2138]
mov eax, 0x47580c
call fcn.00471854
mov edx, dword [ebp - 0x2138]
lea ecx, [ebp - 0x2134]
mov eax, 0x47583c
call fcn.00471854
mov edx, dword [ebp - 0x2134]
lea ecx, [ebp - 0x2130]
mov eax, 0x475848
call fcn.00471854
mov edx, dword [ebp - 0x2130]
lea ecx, [ebp - 0x212c]
mov eax, 0x475854
call fcn.00471854
mov edx, dword [ebp - 0x212c]
lea ecx, [ebp - 0x2128]
mov eax, 0x475860
call fcn.00471854
mov edx, dword [ebp - 0x2128]
lea ecx, [ebp - 0x2124]
mov eax, 0x47586c
call fcn.00471854
mov edx, dword [ebp - 0x2124]
lea ecx, [ebp - 0x2120]
mov eax, 0x4757f4
call fcn.00471854
mov edx, dword [ebp - 0x2120]
lea ecx, [ebp - 0x211c]
mov eax, 0x475830
call fcn.00471854
mov edx, dword [ebp - 0x211c]
lea ecx, [ebp - 0x2118]
mov eax, 0x475878
call fcn.00471854
mov edx, dword [ebp - 0x2118]
lea ecx, [ebp - 0x2114]
mov eax, 0x475884
call fcn.00471854
mov eax, dword [ebp - 0x2114]
call fcn.00408f44
test al, al
je 0x474f7b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474f36
xor edx, ebx
lea ebx, [ebp - 0x20fa]
lea eax, [ebp - 4]
call fcn.00404d60
push eax
push 0x475888
lea edx, [ebp - 0x2164]
xor eax, eax
call fcn.00403078
mov edx, dword [ebp - 0x2164]
lea eax, [ebp - 0x2160]
call fcn.00405174
mov eax, dword [ebp - 0x2160]
call fcn.00405184
push eax
call ebx
jmp 0x4751e3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x474fba
xor edx, ebx
lea ebx, [ebp - 0x20fa]
lea eax, [ebp - 4]
call fcn.00404d60
push eax
push 0x475888
lea ecx, [ebp - 0x21c4]
xor edx, edx
mov eax, 0x475894
call fcn.00471854
mov edx, dword [ebp - 0x21c4]
lea ecx, [ebp - 0x21c0]
mov eax, 0x4758a0
call fcn.00471854
mov edx, dword [ebp - 0x21c0]
lea ecx, [ebp - 0x21bc]
mov eax, 0x475894
call fcn.00471854
mov edx, dword [ebp - 0x21bc]
lea ecx, [ebp - 0x21b8]
mov eax, 0x4758ac
call fcn.00471854
mov edx, dword [ebp - 0x21b8]
lea ecx, [ebp - 0x21b4]
mov eax, 0x4758b8
call fcn.00471854
mov edx, dword [ebp - 0x21b4]
lea ecx, [ebp - 0x21b0]
mov eax, 0x475894
call fcn.00471854
mov edx, dword [ebp - 0x21b0]
lea ecx, [ebp - 0x21ac]
mov eax, 0x4758b8
call fcn.00471854
mov edx, dword [ebp - 0x21ac]
lea ecx, [ebp - 0x21a8]
mov eax, 0x475848
call fcn.00471854
mov edx, dword [ebp - 0x21a8]
lea ecx, [ebp - 0x21a4]
mov eax, 0x4758c4
call fcn.00471854
mov edx, dword [ebp - 0x21a4]
lea ecx, [ebp - 0x21a0]
mov eax, 0x4758d0
call fcn.00471854
mov edx, dword [ebp - 0x21a0]
lea ecx, [ebp - 0x219c]
mov eax, 0x4758a0
call fcn.00471854
mov edx, dword [ebp - 0x219c]
lea ecx, [ebp - 0x2198]
mov eax, 0x475894
call fcn.00471854
mov edx, dword [ebp - 0x2198]
lea ecx, [ebp - 0x2194]
mov eax, 0x475830
call fcn.00471854
mov edx, dword [ebp - 0x2194]
lea ecx, [ebp - 0x2190]
mov eax, 0x47580c
call fcn.00471854
mov edx, dword [ebp - 0x2190]
lea ecx, [ebp - 0x218c]
mov eax, 0x47583c
call fcn.00471854
mov edx, dword [ebp - 0x218c]
lea ecx, [ebp - 0x2188]
mov eax, 0x475848
call fcn.00471854
mov edx, dword [ebp - 0x2188]
lea ecx, [ebp - 0x2184]
mov eax, 0x475854
call fcn.00471854
mov edx, dword [ebp - 0x2184]
lea ecx, [ebp - 0x2180]
mov eax, 0x475860
call fcn.00471854
mov edx, dword [ebp - 0x2180]
lea ecx, [ebp - 0x217c]
mov eax, 0x47586c
call fcn.00471854
mov edx, dword [ebp - 0x217c]
lea ecx, [ebp - 0x2178]
mov eax, 0x4757f4
call fcn.00471854
mov edx, dword [ebp - 0x2178]
lea ecx, [ebp - 0x2174]
mov eax, 0x475830
call fcn.00471854
mov edx, dword [ebp - 0x2174]
lea ecx, [ebp - 0x2170]
mov eax, 0x475878
call fcn.00471854
mov edx, dword [ebp - 0x2170]
lea ecx, [ebp - 0x216c]
mov eax, 0x475884
call fcn.00471854
mov edx, dword [ebp - 0x216c]
lea eax, [ebp - 0x2168]
call fcn.00405174
mov eax, dword [ebp - 0x2168]
call fcn.00405184
push eax
call ebx
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x475213
xor edx, ebx
mov eax, dword [ebp - 0xb4]
mov edx, 0x4757d0
call fcn.00404c54
jne 0x475451
nop
nop
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x47525b
xor edx, ebx
mov dl, 1
mov eax, dword [0x412bb8]
call fcn.004039cc
mov dword [ebp - 0xc8], eax
nop
nop
nop
nop
nop
nop
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4752a3
xor edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00408bd4
mov edx, eax
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 0xb8]
call fcn.00473c90
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4752ee
xor edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00408bd4
mov edx, eax
lea ecx, [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
call fcn.0047433c
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x475339
xor edx, ebx
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x475348
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 0x14ca]
mov ecx, dword [ebp - 0xb0]
xchg ecx, eax
call fcn.00402e7c
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x47538a
xor edx, ebx
xor edx, edx
push ebp
push 0x47544a
push dword fs:[edx]
mov dword fs:[edx], esp
movzx ebx, byte [ebp - 0xe4e]
movzx eax, byte [ebp - 0xe4c]
mov byte [ebp - 0xbd], al
mov eax, dword [ebp - 4]
test eax, eax
je 0x4753b8
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x4753e3
mov edi, 1
lea eax, [ebp - 4]
call fcn.00404d60
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
xor dl, byte [ebp - 0xbd]
xor dl, bl
mov byte [eax + edi - 1], dl
inc edi
dec esi
jne 0x4753c3
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x475413
xor edx, ebx
lea esi, [ebp - 0x14ca]
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x475425
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 4]
call fcn.00404d60
push eax
call esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475451
mov eax, dword [ebp - 0xc8]
call fcn.004039fc
ret
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x475481
xor edx, ebx
mov eax, dword [ebp - 0x38]
mov edx, 0x4757d0
call fcn.00404c54
jne 0x4754cd
nop
nop
nop
nop
nop
nop
nop
nop
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4754c8
xor edx, ebx
mov eax, dword [ebp - 4]
call eax
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4754fd
xor edx, ebx
mov eax, dword [ebp - 0x74]
mov edx, 0x4757d0
call fcn.00404c54
jne 0x4756bb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x47554d
xor edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00408bd4
mov edx, eax
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.00473c90
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x475592
xor edx, ebx
mov eax, dword [ebp - 0x24]
call fcn.00408bd4
mov edx, eax
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0x78]
call fcn.0047433c
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4755d7
xor edx, ebx
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4755e3
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 0xb89]
mov ecx, dword [ebp - 0x7c]
xchg ecx, eax
call fcn.00402e7c
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x475622
xor edx, ebx
movzx ebx, byte [ebp - 0x4d9]
movzx eax, byte [ebp - 0x4d7]
mov byte [ebp - 0xbd], al
mov eax, dword [ebp - 4]
test eax, eax
je 0x475642
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x47566d
mov edi, 1
lea eax, [ebp - 4]
call fcn.00404d60
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
xor dl, byte [ebp - 0xbd]
xor dl, bl
mov byte [eax + edi - 1], dl
inc edi
dec esi
jne 0x47564d
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x47569d
xor edx, ebx
lea esi, [ebp - 0xb89]
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4756af
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 4]
call fcn.00404d60
push eax
call esi
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x4756eb
xor edx, ebx
mov eax, dword [ebp - 0x34]
mov edx, 0x4757d0
call fcn.00404c54
jne 0x47573f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ecx, ebx
push eax
call sub.gdi32.dll_GetGraphicsMode
sub eax, 0x2ee
inc ecx
lea ecx, [eax + 0x394]
push ecx
call sub.gdi32.dll_GetGraphicsMode
xchg ebx, edx
push 0x2b
call sub.gdi32.dll_GetBkMode
push edx
call sub.gdi32.dll_GetDCBrushColor
cmp ecx, 0x46
je 0x475734
xor edx, ebx
lea eax, [ebp - 0x21c8]
call fcn.004745dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4757b6
lea eax, [ebp - 0x21c8]
mov edx, 0x18
call fcn.00404868
lea eax, [ebp - 0x2168]
call fcn.00405024
lea eax, [ebp - 0x2164]
call fcn.00404844
lea eax, [ebp - 0x2160]
call fcn.00405024
lea eax, [ebp - 0x215c]
mov edx, 0x18
call fcn.00404868
lea eax, [ebp - 0xbc]
mov edx, dword [0x4743f4]
call fcn.00405908
lea eax, [ebp - 0xb8]
mov edx, 0x2e
call fcn.00404868
ret