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

Disassembly:
push 0xffffffffffffffff
push 0x100bda5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
mov ebx, dword [esp + 0x244]
push ebp
push esi
push edi
push ebx
call fcn.1002a6d0
mov edi, eax
xor esi, esi
add esp, 4
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 0xbc]
mov dword [esp + 0x8c], esi
cmp eax, esi
mov dword [esp + 0x80], esi
jne 0x100651b6
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [esp + 0x84], eax
call fcn.100b37a5
mov ebp, eax
lea ecx, [esp + 0x108]
mov dword [esp + 0x90], ebp
call fcn.100b3703
mov dword [esp + 0x244], esi
lea esi, [edi + 0xe8]
test esi, esi
je 0x1006522c
mov eax, dword [esi + 4]
test eax, eax
je 0x1006522c
test ebp, ebp
jne 0x100651eb
xor eax, eax
jmp 0x100651ee
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x10c]
call fcn.100b37ba
test esi, esi
je 0x10065209
mov esi, dword [esi + 4]
mov ecx, dword [esp + 0x10c]
push esi
push ecx
call fcn.100b38fb
lea edx, [esp + 0x108]
mov dword [esp + 0xb4], eax
mov dword [esp + 0x8c], edx
mov esi, dword [esp + 0x254]
cmp esi, 0xe
jl 0x10065248
cmp esi, 0x11
mov dword [esp + 0x84], 1
jle 0x10065253
mov dword [esp + 0x84], 0
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0xf4]
call fcn.10029850
mov edx, dword [esp + 0x24c]
xor eax, eax
mov byte [esp + 0x244], 1
mov dword [esp + 0x88], edx
mov dword [esp + 0x5c], eax
mov ebp, dword [esp + eax*4 + 0x8c]
test ebp, ebp
je 0x10065e02
mov eax, dword [esp + 0x84]
mov ecx, edi
push eax
push ebp
call fcn.10047d00
lea eax, [esi - 1]
cmp eax, 0x11
ja case.default.0x100652bd
xor ecx, ecx
mov cl, byte [eax + 0x10065eb8]
jmp dword [ecx*4 + 0x10065e98]
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x34]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], edx
mov edx, dword [ebx + 0x14]
test edx, edx
mov dword [esp + 0x64], ecx
je 0x100652fc
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x60], eax
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x1006530a
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x64], ecx
mov edx, dword [ebx + 0x2c]
test edx, edx
je 0x1006531a
mov edx, dword [ebx + 0x24]
add edx, eax
mov dword [esp + 0x68], edx
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1006532a
mov eax, dword [ebx + 0x30]
add eax, ecx
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x60]
call fcn.100b5b01
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x60]
push ecx
push ebp
mov ecx, esi
call fcn.10047040
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
push edx
lea ecx, [esp + 0x134]
push eax
push ecx
mov ecx, ebp
call fcn.100b3e3f
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov dword [esi + 0xb4], edx
mov dword [esi + 0xb8], eax
jmp case.default.0x100652bd
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0xc]
push eax
push ecx
mov ecx, dword [ebp + 4]
push edx
push ecx
call dword [sym.imp.GDI32.dll_SetPixelV]
jmp case.default.0x100652bd
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x30]
push ecx
lea edx, [esp + 0x12c]
push eax
push edx
mov ecx, ebp
call fcn.100b3e3f
push edi
push esi
mov ecx, ebp
call fcn.100b3e8b
jmp case.default.0x100652bd
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.100b5b01
mov eax, dword [esp + 0x254]
cmp eax, 4
jne 0x10065410
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Ellipse]
jmp case.default.0x100652bd
cmp eax, 8
jne 0x10065438
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Rectangle]
jmp case.default.0x100652bd
cmp eax, 9
jne 0x100654af
mov eax, dword [ebp + 8]
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jne 0x1006545f
inc eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jne 0x10065470
inc eax
mov dword [esp + 0x24], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov eax, dword [ebp + 8]
push 2
push eax
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call fcn.100b42e5
test eax, eax
je 0x1006549a
mov eax, dword [eax + 4]
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
jmp case.default.0x100652bd
cmp eax, 0xa
jne 0x100654e8
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x3c]
test eax, eax
mov eax, ecx
je 0x100654c3
mov eax, dword [ebx + 0x48]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_RoundRect]
jmp case.default.0x100652bd
cmp eax, 0xb
jne 0x10065501
mov eax, dword [ebp + 4]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_InvertRect]
jmp case.default.0x100652bd
mov edi, dword [esp + 0x254]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x48]
mov edx, dword [ebx + 0x54]
mov esi, dword [ebx + 0x60]
sub edi, 5
je 0x10065571
dec edi
je 0x1006554a
dec edi
jne case.default.0x100652bd
push esi
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_Pie]
jmp case.default.0x100652bd
push esi
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Chord]
jmp case.default.0x100652bd
push esi
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_Arc]
jmp case.default.0x100652bd
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x70]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx + 0x30]
push 1
push edx
push eax
mov dword [esp + 0x88], ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
lea ecx, [esp + 0x78]
push ecx
mov ecx, ebp
call fcn.100b3f80
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x34]
mov esi, dword [esp + 0x78]
test esi, esi
jle case.default.0x100652bd
mov eax, dword [esp + 0x7c]
test eax, eax
jle case.default.0x100652bd
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x4c]
lea ecx, [esi + edx]
cmp ecx, edi
jl case.default.0x100652bd
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x50]
add eax, ecx
cmp eax, edi
jl case.default.0x100652bd
cmp edx, dword [esp + 0x54]
jg case.default.0x100652bd
cmp ecx, dword [esp + 0x58]
jg case.default.0x100652bd
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x10065640
mov dword [esp + 0x10], 2
jmp 0x1006566a
mov eax, dword [ebx + 0x3c]
cmp eax, 8
jg 0x1006565c
cmp eax, 1
jge 0x10065657
mov dword [esp + 0x10], 1
jmp 0x1006566a
cmp eax, 8
jle 0x10065666
mov dword [esp + 0x10], 8
jmp 0x1006566a
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x104], 0
lea edi, [eax - 6]
test edi, edi
jle 0x100656b3
lea esi, [ebx + 0x48]
mov dword [esp + 0x34], edi
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0xf8]
call fcn.10029b50
mov eax, dword [esp + 0x34]
add esi, 0xc
dec eax
mov dword [esp + 0x34], eax
jne 0x1006568a
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x78]
mov dword [esp + 0xe4], edx
add esi, edx
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0xe4]
add edx, ecx
push eax
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ecx
mov dword [esp + 0xf4], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne case.default.0x100652bd
mov eax, dword [esp + 0x2c]
cmp ebp, dword [eax + 0xbc]
jne 0x10065727
add eax, 0xc0
mov ecx, dword [eax]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa8], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xac], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0xb0], edx
jmp 0x10065753
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], eax
lea ecx, [esp + 0x19c]
call fcn.1001bd60
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0xfc]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ecx
mov ecx, dword [esp + 0x14]
push edi
push eax
lea edx, [esp + 0xb0]
push ecx
lea eax, [esp + 0xf4]
push edx
push eax
push ebp
lea ecx, [esp + 0x1b8]
mov byte [esp + 0x260], 2
call fcn.1001cce0
mov dword [esp + 0x19c], 0x100c2c50
mov esi, 0x100c1c18
lea ecx, [esp + 0x214]
mov byte [esp + 0x244], 3
mov dword [esp + 0x214], esi
call fcn.10029a50
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x244], 1
mov dword [esp + 0x1f4], esi
call fcn.10029a50
jmp case.default.0x100652bd
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0xb8]
push ecx
push edx
call fcn.1005a390
mov ecx, dword [ebx + 0x20]
mov esi, eax
mov eax, dword [esp + 0xc0]
add esp, 8
cdq
sub eax, edx
sar eax, 1
test ecx, ecx
je 0x10065821
mov ecx, dword [ebx + 0x18]
cmp eax, ecx
jl 0x10065821
mov eax, ecx
cmp eax, 1
jle case.default.0x100652bd
push eax
mov eax, dword [ebp + 4]
push esi
push eax
call dword [sym.imp.GDI32.dll_Polygon]
jmp case.default.0x100652bd
mov eax, dword [ebx + 0xc]
push 0
push eax
push 0x7e5
mov dword [esp + 0x44], eax
call fcn.10057490
test eax, eax
je case.default.0x100652bd
mov eax, dword [ebx + 0x50]
xor edi, edi
cmp eax, edi
je 0x10065868
mov esi, dword [ebx + 0x48]
cmp esi, 1
jne 0x1006586f
mov esi, 0xcc0020
jmp 0x1006589d
cmp esi, 2
jne 0x1006587b
mov esi, 0x330008
jmp 0x1006589d
cmp esi, 3
jne 0x10065887
mov esi, 0x660046
jmp 0x1006589d
cmp esi, 4
jne 0x10065893
mov esi, 0xee0086
jmp 0x1006589d
cmp esi, 5
jne 0x1006589d
mov esi, 0x8800c6
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x24]
cmp eax, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
je 0x100658c7
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x44], eax
cmp dword [ebx + 0x44], edi
je 0x100658d3
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x48], ecx
mov eax, dword [ebp + 8]
lea edx, [esp + 0x94]
push 1
push edx
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.100b3f80
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x34]
cmp dword [ebx + 0x38], edi
jne 0x1006590a
mov dword [esp + 0x44], 0xffffffff
cmp dword [ebx + 0x44], edi
jne 0x10065917
mov dword [esp + 0x48], 0xffffffff
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x98]
push esi
push eax
mov eax, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ebp
push ecx
call fcn.10086f60
add esp, 0x1c
jmp case.default.0x100652bd
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_DPtoLP]
push 1
mov ecx, dword [edx + 0xb4]
lea eax, [edx + 0xb4]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 4]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x24], edx
call esi
cmp dword [esp + 0x254], 0x11
jne 0x100659b7
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1006598b
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10065999
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x18], eax
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x14]
push 1
push eax
push ecx
call esi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xc0], eax
mov esi, 2
mov dword [esp + 0xc4], ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xbc]
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x58]
push esi
push eax
push ecx
mov dword [esp + 0xd4], edx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x44]
push eax
call fcn.1002a6b0
add esp, 4
lea ecx, [esp + 0x9c]
push eax
call fcn.100b43b7
lea ecx, [esp + 0xcc]
mov byte [esp + 0x244], 4
push ecx
mov ecx, ebp
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], esi
call fcn.100b3fe9
mov edi, 0x100dc368
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x138]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xd4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x13c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x13c]
push ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x254]
cmp eax, 0x11
lea ecx, [edx - 1]
jne 0x10065aab
sub ecx, 2
test ecx, ecx
jle 0x10065d8e
mov eax, dword [esp + 0x254]
mov dword [esp + 0x38], ecx
sub eax, 0x11
neg eax
sbb eax, eax
and al, 0xfe
add eax, 3
lea eax, [eax + eax*2]
lea esi, [ebx + eax*4 + 8]
mov dword [esp + 0x34], esi
jmp 0x10065adb
mov esi, dword [esp + 0x34]
mov ecx, dword [esi]
push ecx
call fcn.10050ee0
add esp, 4
test eax, eax
je 0x10065b00
lea edx, [esp + 0x138]
add esi, 0xfffffff8
push edx
push esi
call fcn.1005e0c0
add esp, 8
jmp 0x10065b5b
mov eax, dword [esi]
cmp eax, reloc.WS2_32.dll_connect
jne 0x10065b0e
mov esi, dword [esi - 8]
jmp 0x10065b62
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
jne 0x10065b2b
mov ecx, dword [esi - 8]
lea eax, [esp + 0x138]
push eax
push ecx
call fcn.100149e0
add esp, 8
jmp 0x10065b5b
cmp eax, reloc.WS2_32.dll_closesocket
jne 0x10065b4c
mov eax, dword [esi - 4]
mov ecx, dword [esi - 8]
lea edx, [esp + 0x138]
push edx
push eax
push ecx
call fcn.10013c70
add esp, 0xc
jmp 0x10065b5b
test eax, eax
jne 0x10065d6d
mov byte [esp + 0x138], al
lea esi, [esp + 0x138]
test esi, esi
mov dword [esp + 0x10], esi
je 0x10065d6d
mov edx, dword [esp + 0x10]
mov al, byte [edx]
test al, al
jne 0x10065ba6
mov eax, dword [esp + 0x254]
cmp eax, 0x10
je 0x10065d6d
cmp eax, 0x11
je 0x10065d6d
mov eax, dword [esp + 0xd8]
xor ebx, ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov esi, edx
jmp 0x10065c1d
mov esi, dword [esp + 0x10]
mov ebx, esi
cmp al, 0xd
je 0x10065bbc
cmp al, 0xa
je 0x10065bbc
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x10065bac
mov al, byte [ebx]
test al, al
je 0x10065bcb
mov byte [esp + 0x33], al
mov byte [ebx], 0
jmp 0x10065bcd
xor ebx, ebx
cmp byte [esi], 0
jne 0x10065be7
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ecx
jmp 0x10065c1d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xdc]
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
push edx
not ecx
dec ecx
push ecx
push esi
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
cmp dword [esp + 0x254], 0xf
jne 0x10065cca
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
lea edx, [eax + ecx]
mov eax, dword [esp + 0xc8]
cmp edx, eax
jle 0x10065cca
mov esi, dword [esp + 0xd0]
lea edx, [esp + 0xbc]
sub esi, eax
mov eax, dword [esp + 0x40]
add esi, eax
lea eax, [esp + 0x118]
add esi, ecx
push eax
lea ecx, [esp + 0xc0]
mov eax, esi
push 0
push ecx
mov ecx, dword [ebp + 4]
push edx
neg eax
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_ScrollDC]
mov eax, dword [ebp + 8]
lea edx, [esp + 0x118]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, dword [esp + 0xa0]
lea eax, [esp + 0x9c]
mov edx, dword [ebp + 4]
neg eax
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0x118]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x18]
sub eax, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
cmp byte [esi], 0
je 0x10065cef
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x18]
push esi
push eax
push ecx
mov ecx, ebp
call dword [edx + 0x5c]
test ebx, ebx
jne 0x10065d04
mov eax, dword [esp + 0x254]
cmp eax, 0xe
je 0x10065d04
cmp eax, 0xf
jne 0x10065d5f
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
add eax, edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push 1
push eax
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
add eax, 2
push 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
test ebx, ebx
je 0x10065d6d
mov cl, byte [esp + 0x33]
mov byte [ebx], cl
mov al, byte [ebx + 1]
inc ebx
cmp al, 0xa
jne 0x10065d52
inc ebx
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x10065d6d
jmp 0x10065b6e
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add ecx, 0xc
dec eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
jne 0x10065ad7
mov ebx, dword [esp + 0x250]
cmp dword [esp + 0x5c], 1
jne 0x10065dc2
cmp dword [esp + 0x254], 0x11
je 0x10065dc2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add eax, 0xb4
push 1
push eax
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
mov dword [esp + 0x9c], vtable.CGdiObject.0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x244], 5
call fcn.100b4351
mov byte [esp + 0x244], 1
mov ecx, dword [esp + 0x2c]
push ebp
call fcn.10047e10
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x254]
mov edi, dword [esp + 0x2c]
inc eax
cmp eax, 1
mov dword [esp + 0x5c], eax
jle 0x1006528a
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x10065e33
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x10065e29
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 4]
push eax
push ecx
call fcn.100b38fb
mov eax, dword [esp + 0x80]
test eax, eax
je 0x10065e49
mov edx, dword [edi + 0x1c]
push eax
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0xf4]
mov byte [esp + 0x244], 0
mov dword [esp + 0xf4], 0x100c1c18
call fcn.10029a50
lea ecx, [esp + 0x108]
mov dword [esp + 0x244], 0xffffffff
call fcn.100b3838
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x238
ret