Function at 0x497b40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [0x609af4]
sub esp, 0x24
test eax, eax
je 0x497b7a
mov eax, dword [0x637058]
test eax, eax
je 0x497b5e
mov eax, dword [0x63705c]
test eax, eax
jne 0x497b80
mov eax, dword [0x637060]
test eax, eax
jne 0x497b7a
mov dword [0x637060], 1
call fcn.00496f20
test eax, eax
jne 0x497b80
xor eax, eax
add esp, 0x24
ret
push ebx
push ebp
mov ebp, dword [esp + 0x30]
test ebp, ebp
push esi
push edi
je 0x4987ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x40]
mov eax, dword [0x637068]
test ecx, ecx
jne 0x497db0
push 6
push ebp
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov ebx, eax
test ebx, ebx
je 0x4987ce
mov eax, dword [0x637068]
test eax, eax
jne 0x497bfb
push 0x20198
call fcn.005cc381
mov edi, eax
add esp, 4
xor eax, eax
test edi, edi
mov dword [0x637068], edi
je 0x4987d0
mov ecx, 0x8066
rep stosd dword es:[edi], eax
mov dword [0x63706c], 1
mov eax, dword [0x637068]
cmp dword [eax], ebx
je 0x497de1
mov eax, dword [0x63705c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x497c28
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push ebx
push ebp
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jge 0x497c42
mov eax, dword [0x637058]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push ebx
push ebp
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jl 0x4987ce
mov eax, dword [0x637068]
mov ecx, dword [eax + 0x108]
cmp ecx, 1
jne 0x497c67
mov ecx, dword [0x637058]
cmp ecx, edi
je 0x497c94
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
jmp 0x497c8f
cmp ecx, 2
jne 0x497c81
mov ecx, dword [0x63705c]
cmp ecx, edi
je 0x497c94
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x20]
jmp 0x497c8f
cmp ecx, 3
jne 0x497c94
mov ecx, dword [eax]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x637068]
mov dword [eax], ebx
mov edx, dword [0x637068]
add edx, 4
push 0x104
push edx
call fcn.00423a00
mov eax, dword [0x637068]
mov dword [eax + 0x108], edi
mov ecx, dword [0x637068]
mov edx, dword [esp + 0x1c]
mov dword [ecx + 0x10c], edx
mov eax, dword [0x637068]
mov eax, dword [eax + 0x110]
add esp, 8
cmp eax, edi
je 0x497ce0
push eax
call fcn.005cc393
add esp, 4
mov ecx, dword [0x637068]
xor ebx, ebx
mov dword [ecx + 0x110], ebx
mov edx, dword [0x637068]
mov dword [edx + 0x114], ebx
mov edi, dword [0x637068]
xor eax, eax
mov ecx, 0xf
add edi, 0x118
rep stosd dword es:[edi], eax
mov eax, dword [0x637068]
mov edx, dword [eax]
lea ecx, [eax + 0x118]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x4987ce
mov eax, dword [0x637068]
lea ecx, [eax + 0x134]
lea edx, [eax + 4]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x497d40
mov edi, dword [0x637068]
add edi, 0x154
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov edi, dword [0x637068]
add edi, 0x18c
mov ecx, 0x7fff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x637068]
mov dword [ecx + 0x20190], eax
mov edx, dword [0x637068]
mov dword [edx + 0x20194], ebx
mov eax, dword [0x637068]
add eax, 0x154
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push ebx
push ebp
call fcn.00497280
add esp, 8
jmp 0x497de1
cmp ecx, 1
jne 0x49879c
mov ecx, dword [eax]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x637068]
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x20190], eax
mov ecx, dword [0x637068]
xor eax, eax
mov dword [ecx + 0x20194], eax
mov ebx, dword [esp + 0x3c]
xor eax, eax
cmp ebx, eax
je 0x4987ce
cmp dword [0x637068], eax
je 0x4987ce
cmp dword [0x63706c], 1
jl 0x4987ce
lea edx, [esp + 0x14]
push edx
push esi
push ebx
push ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0xffffffff
call fcn.00497600
mov edi, dword [esp + 0x24]
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov dword [esp + 0x10], eax
jl 0x497ed2
cmp eax, ecx
jle 0x497ed2
cmp dword [esp + 0x4c], ecx
je 0x497e64
sub esi, eax
lea edx, [ebx + eax*2]
xor eax, eax
cmp esi, ecx
setle al
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], esi
inc eax
mov ecx, eax
jmp 0x497ba2
push ecx
push edi
call fcn.00497440
add esp, 8
test eax, eax
jne 0x4986e5
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x3c]
xor ecx, ecx
test ebp, ebp
jle 0x497ea4
mov ax, word [esi + ecx*2]
cmp ax, 0x20
je 0x497e9f
movzx eax, ax
cmp eax, 0x1fffe
jge 0x497e9f
mov byte [eax + 0x617058], 1
inc ecx
cmp ecx, ebp
jl 0x497e84
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x498741
lea eax, [esi + ebp*2]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
sub eax, ebp
mov ebp, dword [esp + 0x38]
xor ecx, ecx
test eax, eax
setle cl
mov dword [esp + 0x40], eax
inc ecx
jmp 0x497b9e
mov eax, dword [0x63705c]
cmp eax, ecx
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x20]
push edx
mov edx, dword [0x637068]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
mov edx, dword [edx + 0x10c]
push edx
push esi
push ebx
jne 0x497f01
mov eax, dword [0x637058]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x497e76
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x497e7a
mov ebx, dword [0x63706c]
mov edx, dword [esp + 0x1c]
mov eax, dword [0x637068]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x14], edi
jle 0x497f5b
lea ecx, [eax + 0x10c]
lea ebx, [ebx]
test edx, edx
je 0x497f4c
test dword [ecx], edx
jne 0x498036
inc edi
add ecx, 0x20198
cmp edi, ebx
jl 0x497f40
mov dword [esp + 0x14], edi
mov ecx, dword [0x637058]
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov eax, dword [eax]
mov ebx, dword [ecx]
lea edi, [esp + 0x18]
push edi
mov edi, dword [esp + 0x3c]
push eax
push edx
push edi
push ecx
mov esi, 1
call dword [ebx + 0x20]
test eax, eax
jl 0x497f8a
cmp dword [esp + 0x18], ebp
jne 0x497fcb
mov eax, dword [0x63705c]
cmp eax, ebp
mov dword [esp + 0x18], ebp
je 0x497e76
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
movzx edx, word [edx]
push edx
mov edx, dword [esp + 0x24]
push edx
push edi
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x498127
cmp dword [esp + 0x18], ebp
je 0x498127
mov esi, 2
mov eax, dword [0x63706c]
mov ebx, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x14], ebx
mov dword [0x63706c], eax
jle 0x49822c
mov ecx, dword [0x637068]
mov edi, 0xc69ed0
mov dword [0x63706c], 0x64
mov eax, dword [edi + ecx]
cmp eax, 1
mov ebx, 0x63
mov dword [esp + 0x14], ebx
jne 0x498130
mov eax, dword [0x637058]
xor ebp, ebp
cmp eax, ebp
je 0x49816f
mov ecx, dword [ecx + 0xc69dc8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov ecx, dword [0x637068]
jmp 0x49816f
mov esi, dword [esp + 0x3c]
xor edx, edx
test ebp, ebp
mov dword [esp + 0x14], edi
jle 0x49807d
mov ebx, edi
imul ebx, ebx, 0x20198
lea esp, [esp]
mov cx, word [esi + edx*2]
cmp cx, 0x20
je 0x498078
movzx ecx, cx
cmp ecx, 0x1fffe
jge 0x498078
add ecx, ebx
mov byte [ecx + eax + 0x18c], 1
mov ebp, dword [esp + 0x10]
mov eax, dword [0x637068]
inc edx
cmp edx, ebp
jl 0x498050
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4980a7
lea edx, [esi + ebp*2]
mov esi, dword [esp + 0x40]
sub esi, ebp
mov ebp, dword [esp + 0x38]
xor ecx, ecx
test esi, esi
setle cl
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], esi
inc ecx
jmp 0x497ba7
push 0
push edi
call fcn.00497440
add esp, 8
test eax, eax
je 0x497e76
mov eax, dword [0x637068]
mov esi, edi
mov edi, dword [esp + 0x38]
imul esi, esi, 0x20198
mov ecx, dword [esi + eax]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x637068]
mov eax, dword [esp + 0x2c]
mov dword [esi + edx + 0x20190], eax
mov ecx, dword [0x637068]
xor eax, eax
mov dword [esi + ecx + 0x20194], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x14]
push edx
sub eax, ecx
push eax
mov eax, dword [esp + 0x44]
lea ecx, [eax + ecx*2]
push ecx
push edi
call fcn.00497600
mov ecx, dword [esp + 0x20]
add esp, 0x10
pop edi
pop esi
add ecx, eax
pop ebp
mov eax, ecx
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x18], ebp
jmp 0x497e76
cmp eax, 2
jne 0x498155
mov eax, dword [0x63705c]
xor ebp, ebp
cmp eax, ebp
je 0x49816f
mov ecx, dword [ecx + 0xc69dc8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x20]
mov ecx, dword [0x637068]
jmp 0x49816f
cmp eax, 3
jne 0x49816d
mov edx, dword [ecx + 0xc69dc8]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [0x637068]
xor ebp, ebp
mov dword [ecx + 0xc69dc8], ebp
mov eax, dword [0x637068]
add eax, 0xc69dcc
push 0x104
push eax
call fcn.00423a00
mov ecx, dword [0x637068]
mov dword [edi + ecx], ebp
mov edx, dword [0x637068]
mov dword [edx + 0xc69ed4], ebp
mov eax, dword [0x637068]
mov edi, 0xc69ed8
mov eax, dword [edi + eax]
add esp, 8
cmp eax, ebp
je 0x4981bc
push eax
call fcn.005cc393
add esp, 4
mov ecx, dword [0x637068]
mov dword [edi + ecx], ebp
mov edx, dword [0x637068]
mov dword [edx + 0xc69edc], ebp
mov edi, dword [0x637068]
add edi, 0xc69ee0
xor eax, eax
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov edi, dword [0x637068]
add edi, 0xc69f1c
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov edi, dword [0x637068]
add edi, 0xc69f54
mov ecx, 0x7fff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x637068]
mov dword [eax + 0xc89f58], ebp
mov ecx, dword [0x637068]
mov dword [ecx + 0xc89f5c], ebp
mov eax, dword [0x63706c]
xor ebp, ebp
mov edx, dword [0x637068]
imul eax, eax, 0x20198
push eax
push edx
call fcn.005ce1f4
mov edx, eax
add esp, 8
cmp edx, ebp
jne 0x4982a5
cmp esi, 1
jne 0x49826a
mov eax, dword [0x637058]
cmp eax, ebp
je 0x497e76
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
jmp 0x497e76
cmp esi, 2
jne 0x49828c
mov eax, dword [0x63705c]
cmp eax, ebp
je 0x497e76
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
jmp 0x497e76
cmp esi, 3
jne 0x497e76
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x497e76
mov ebp, ebx
imul ebp, ebp, 0x20198
mov dword [0x637068], edx
xor eax, eax
lea edi, [edx + ebp]
mov ecx, 0x8066
rep stosd dword es:[edi], eax
mov ecx, dword [0x637068]
mov edx, dword [esp + 0x18]
mov dword [ecx + ebp], edx
mov eax, dword [0x637068]
push 1
push ebx
mov dword [eax + ebp + 0x108], esi
call fcn.00497440
mov ecx, dword [0x637068]
mov edx, dword [ecx + ebp]
mov eax, dword [esp + 0x40]
add esp, 8
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x63705c]
test eax, eax
mov dword [esp + 0x20], 0
je 0x498327
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [0x637068]
mov edx, dword [edx + ebp]
push edx
mov edx, dword [esp + 0x40]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x49835d
mov eax, dword [0x637058]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [0x637068]
mov edx, dword [edx + ebp]
push edx
mov edx, dword [esp + 0x40]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x49835d
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x637068]
mov dword [ecx + ebp + 0x10c], eax
jmp 0x49836d
mov edx, dword [esp + 0x20]
mov eax, dword [0x637068]
mov dword [eax + ebp + 0x10c], edx
mov ecx, dword [0x637068]
xor eax, eax
mov dword [ecx + ebp + 0x110], eax
mov edx, dword [0x637068]
mov dword [edx + ebp + 0x114], eax
mov eax, dword [0x637068]
lea esi, [eax + 0x118]
lea edi, [eax + ebp + 0x118]
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x637068]
xor eax, eax
lea edi, [edx + ebp + 0x154]
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov edx, dword [0x637068]
lea edi, [edx + ebp + 0x18c]
mov ecx, 0x7fff
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
stosw word es:[edi], ax
mov eax, dword [0x637068]
mov dword [eax + ebp + 0x20190], ecx
mov edx, dword [0x637068]
xor eax, eax
mov dword [edx + ebp + 0x20194], eax
mov eax, dword [0x637068]
mov edx, dword [esp + 0x38]
lea ecx, [eax + ebp + 0x154]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x38]
push ebx
push eax
call fcn.00497280
mov eax, dword [0x637068]
add esp, 8
test ebx, ebx
mov dword [esp + 0x24], 0
jle 0x49866d
xor esi, esi
lea ebx, [ebx]
mov ecx, dword [esi + eax + 0x10c]
cmp ecx, dword [eax + ebp + 0x10c]
jne 0x4984d5
mov edx, dword [esi + eax + 0x114]
cmp edx, dword [eax + ebp + 0x114]
jne 0x4984d5
lea ecx, [eax + ebp + 4]
push ecx
lea edx, [esi + eax + 4]
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
mov eax, dword [0x637068]
jne 0x4984d5
mov ecx, dword [esi + eax + 0x114]
xor edi, edi
test ecx, ecx
jbe 0x4984cc
mov edx, dword [esi + eax + 0x110]
mov ecx, dword [eax + ebp + 0x110]
mov ebx, dword [esi + eax + 0x110]
add edx, 2
sub ebx, ecx
mov dword [esp + 0x28], ebx
jmp 0x4984a4
mov ebx, dword [esp + 0x28]
mov bx, word [ebx + ecx]
cmp bx, word [ecx]
jne 0x4984c8
mov bx, word [edx]
cmp bx, word [ecx + 2]
jne 0x4984c8
mov ebx, dword [esi + eax + 0x114]
inc edi
add edx, 4
add ecx, 4
cmp edi, ebx
jb 0x4984a0
mov ebx, dword [esp + 0x14]
cmp edi, dword [esi + eax + 0x114]
je 0x4984f1
mov ecx, dword [esp + 0x24]
inc ecx
add esi, 0x20198
cmp ecx, ebx
mov dword [esp + 0x24], ecx
jl 0x498430
jmp 0x49866d
mov ebx, dword [esp + 0x24]
mov ecx, ebx
imul ecx, ecx, 0x20198
mov edi, dword [ecx + eax]
mov esi, dword [ecx + eax + 0x108]
lea edx, [ecx + eax + 0x108]
mov eax, dword [eax + ebp + 0x108]
mov dword [edx], eax
mov eax, dword [0x637068]
mov edx, dword [eax + ebp]
mov dword [ecx + eax], edx
mov eax, dword [0x637068]
mov dword [eax + ebp + 0x108], esi
mov ecx, dword [0x637068]
mov dword [ecx + ebp], edi
mov ecx, dword [0x637068]
mov eax, dword [ecx + ebp + 0x108]
cmp eax, 1
jne 0x498566
mov eax, dword [0x637058]
xor esi, esi
cmp eax, esi
je 0x49859f
mov ecx, dword [ecx + ebp]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov ecx, dword [0x637068]
jmp 0x49859f
cmp eax, 2
jne 0x498588
mov eax, dword [0x63705c]
xor esi, esi
cmp eax, esi
je 0x49859f
mov ecx, dword [ecx + ebp]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x20]
mov ecx, dword [0x637068]
jmp 0x49859f
cmp eax, 3
jne 0x49859d
mov edx, dword [ecx + ebp]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [0x637068]
xor esi, esi
mov dword [ecx + ebp], esi
mov eax, dword [0x637068]
lea ecx, [eax + ebp + 4]
push 0x104
push ecx
call fcn.00423a00
mov edx, dword [0x637068]
mov dword [edx + ebp + 0x10c], esi
mov eax, dword [0x637068]
mov eax, dword [eax + ebp + 0x110]
add esp, 8
cmp eax, esi
je 0x4985df
push eax
call fcn.005cc393
add esp, 4
mov ecx, dword [0x637068]
mov dword [ecx + ebp + 0x110], esi
mov edx, dword [0x637068]
mov dword [edx + ebp + 0x114], esi
mov eax, dword [0x637068]
mov dword [eax + ebp + 0x108], esi
mov edx, dword [0x637068]
xor eax, eax
lea edi, [edx + ebp + 0x118]
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov edx, dword [0x637068]
lea edi, [edx + ebp + 0x154]
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov edx, dword [0x637068]
mov ecx, 0x7fff
lea edi, [edx + ebp + 0x18c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x637068]
mov dword [eax + ebp + 0x20190], esi
mov ecx, dword [0x637068]
mov dword [ecx + ebp + 0x20194], esi
dec dword [0x63706c]
mov eax, dword [0x637068]
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
xor edi, edi
test esi, esi
jle 0x4986b5
jmp 0x498680
mov dx, word [ecx + edi*2]
cmp dx, 0x20
je 0x4986b0
movzx edx, dx
cmp edx, 0x1fffe
jge 0x4986b0
mov esi, ebx
imul esi, esi, 0x20198
add esi, edx
mov byte [esi + eax + 0x18c], 1
mov esi, dword [esp + 0x10]
mov eax, dword [0x637068]
inc edi
cmp edi, esi
jl 0x498680
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x498727
mov ebp, dword [esp + 0x38]
lea edx, [ecx + esi*2]
mov ecx, dword [esp + 0x40]
sub ecx, esi
mov dword [esp + 0x3c], edx
xor edx, edx
test ecx, ecx
setle dl
mov dword [esp + 0x40], ecx
mov esi, dword [esp + 0x40]
inc edx
mov ecx, edx
jmp 0x497ba7
mov ecx, dword [0x637068]
imul edi, edi, 0x20198
mov edx, dword [edi + ecx]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x637068]
mov ecx, dword [esp + 0x2c]
mov dword [edi + eax + 0x20190], ecx
mov edx, dword [0x637068]
xor eax, eax
mov dword [edi + edx + 0x20194], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x14]
push edx
sub eax, esi
push eax
lea eax, [ecx + esi*2]
mov ecx, dword [esp + 0x40]
push eax
push ecx
jmp 0x49810f
mov edx, dword [0x637068]
mov eax, dword [edx]
mov edi, dword [esp + 0x38]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x637068]
mov edx, dword [esp + 0x2c]
mov dword [ecx + 0x20190], edx
mov ecx, dword [0x637068]
xor eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [ecx + 0x20194], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
push eax
push esi
push edi
call fcn.00497600
add esp, 0x10
test eax, eax
jg 0x4987d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
cmp ecx, 2
jne 0x4987ce
mov ecx, dword [eax]
push ecx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x637068]
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x20190], eax
mov ecx, dword [0x637068]
xor eax, eax
mov dword [ecx + 0x20194], eax
call fcn.00497940
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret