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

Disassembly:
mov eax, dword [0x61a0a8]
sub esp, 0x64
test eax, eax
je 0x499bc8
mov eax, dword [0x669680]
test eax, eax
je 0x499bae
mov eax, dword [0x669684]
test eax, eax
jne 0x499bc0
mov eax, dword [0x669688]
test eax, eax
jne 0x499bc8
call fcn.00498e50
test eax, eax
je 0x499bc8
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x499bce
xor eax, eax
add esp, 0x64
ret
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
mov eax, dword [0x669690]
test ecx, ecx
jne 0x499e1b
mov eax, dword [esp + 0x78]
push 6
push eax
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov ebp, eax
test ebp, ebp
je 0x49a976
mov eax, dword [0x669690]
test eax, eax
jne 0x499c4b
push 0x204c8
call fcn.005d9f91
mov edi, eax
add esp, 4
xor eax, eax
test edi, edi
mov dword [0x669690], edi
je 0x49a978
mov ecx, 0x8132
rep stosd dword es:[edi], eax
mov dword [0x669694], 1
mov ecx, dword [0x669690]
cmp dword [ecx], ebp
je 0x499e50
mov eax, dword [0x669684]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x20], edi
je 0x499c7d
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x7c]
push ebp
push ecx
push eax
call dword [edx + 0x1c]
cmp eax, edi
jge 0x499c9b
mov eax, dword [0x669680]
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x7c]
push ebp
push ecx
push eax
call dword [edx + 0x1c]
cmp eax, edi
jl 0x49a976
mov eax, dword [0x669690]
mov ecx, dword [eax + 0x438]
cmp ecx, 1
jne 0x499cc0
mov ecx, dword [0x669680]
cmp ecx, edi
je 0x499ced
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
jmp 0x499ce8
cmp ecx, 2
jne 0x499cda
mov ecx, dword [0x669684]
cmp ecx, edi
je 0x499ced
mov eax, dword [eax]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x20]
jmp 0x499ce8
cmp ecx, 3
jne 0x499ced
mov ecx, dword [eax]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x669690]
mov dword [eax], ebp
mov edx, dword [0x669690]
add edx, 4
push 0x432
push edx
call fcn.004232e0
mov eax, dword [0x669690]
mov dword [eax + 0x438], edi
mov ecx, dword [0x669690]
mov edx, dword [esp + 0x28]
mov dword [ecx + 0x43c], edx
mov eax, dword [0x669690]
mov eax, dword [eax + 0x440]
add esp, 8
cmp eax, edi
je 0x499d39
push eax
call fcn.005d9fa3
add esp, 4
mov ecx, dword [0x669690]
xor ebp, ebp
mov dword [ecx + 0x440], ebp
mov edx, dword [0x669690]
mov dword [edx + 0x444], ebp
mov edi, dword [0x669690]
xor eax, eax
mov ecx, 0xf
add edi, 0x448
rep stosd dword es:[edi], eax
mov eax, dword [0x669690]
mov edx, dword [eax]
lea ecx, [eax + 0x448]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x49a976
mov edx, dword [0x669690]
lea ecx, [edx + 0x464]
add edx, 4
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x499d96
mov edi, dword [0x669690]
add edi, 0x484
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov edi, dword [0x669690]
add edi, 0x4bc
mov ecx, 0x7fff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x669690]
mov edi, dword [esp + 0x78]
mov dword [ecx + 0x204c0], eax
mov edx, dword [0x669690]
mov dword [edx + 0x204c4], ebp
mov eax, dword [0x669690]
add eax, 0x484
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push ebp
push edi
call fcn.00499250
mov eax, dword [0x669690]
mov ecx, dword [eax + 0x484]
add esp, 8
mov dword [eax + 0x448], ecx
jmp 0x499e50
cmp ecx, 1
jne 0x49a940
mov edx, dword [eax]
mov eax, dword [esp + 0x78]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x669690]
mov edx, dword [esp + 0x30]
mov dword [ecx + 0x204c0], edx
mov ecx, dword [0x669690]
xor eax, eax
mov dword [ecx + 0x204c4], eax
xor ebp, ebp
cmp ebx, ebp
je 0x49a976
cmp dword [0x669694], 1
jl 0x49a976
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.004995d0
mov edi, dword [esp + 0x28]
add esp, 0x10
cmp edi, ebp
mov dword [esp + 0x10], eax
jl 0x499e9f
cmp eax, ebp
jg 0x49a6b7
mov eax, dword [0x669684]
cmp eax, ebp
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x20]
push edx
mov edx, dword [0x669690]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov edx, dword [edx + 0x43c]
push edx
push esi
push ebx
jne 0x499ece
mov eax, dword [0x669680]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp eax, ebp
jl 0x49a656
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x49a65a
mov ebx, dword [0x669694]
mov edx, dword [esp + 0x1c]
mov eax, dword [0x669690]
xor edi, edi
xor esi, esi
cmp ebx, edi
mov dword [esp + 0x18], esi
jle 0x499f2b
lea ecx, [eax + 0x43c]
lea esp, [esp]
cmp edx, edi
je 0x499f1c
test dword [ecx], edx
jne 0x49a738
inc esi
add ecx, 0x204c8
cmp esi, ebx
mov dword [esp + 0x18], esi
jl 0x499f10
cmp dword [0x6696a0], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
jle 0x49a049
lea ecx, [esp + 0x54]
sub ecx, 0x669068
mov ebp, 0x66919c
mov dword [esp + 0x18], ecx
jmp 0x499f63
mov eax, dword [0x669690]
mov ebx, dword [0x669694]
xor edi, edi
test ebx, ebx
mov dword [ebp], 0
jle 0x499fb1
lea ebx, [ebp - 0x134]
xor esi, esi
jmp 0x499f80
mov eax, dword [0x669690]
nop
lea eax, [esi + eax + 4]
push ebx
push eax
call fcn.005f1860
add esp, 8
test eax, eax
je 0x49a026
mov eax, dword [0x669694]
inc edi
add esi, 0x204c8
cmp edi, eax
jl 0x499f7a
cmp dword [ebp], 0
jne 0x499ff1
mov eax, dword [0x669690]
mov edx, dword [eax]
lea ecx, [esp + 0x38]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x499ff1
lea eax, [ebp - 0x134]
jmp 0x499fd0
mov cl, byte [eax]
mov edx, dword [esp + 0x18]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x499fd0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x49a02f
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov ecx, dword [0x6696a0]
inc eax
sub esi, 0x138
add ebp, 0x138
cmp eax, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
jl 0x499f58
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
jmp 0x49a038
mov dword [ebp], 1
jmp 0x499ff1
mov ebp, 3
mov dword [esp + 0x20], ebp
test eax, eax
jne 0x49a0c0
mov edx, dword [esp + 0x1c]
mov eax, dword [0x669690]
mov eax, dword [eax]
mov ecx, dword [0x669680]
mov edi, dword [ecx]
lea esi, [esp + 0x14]
push esi
mov esi, dword [esp + 0x7c]
push eax
push edx
push esi
push ecx
call dword [edi + 0x20]
test eax, eax
jl 0x49a076
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49a076
mov ebp, 1
jmp 0x49a0bc
mov eax, dword [0x669684]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x49a656
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x80]
movzx edx, word [edx]
push edx
mov edx, dword [esp + 0x24]
push edx
push esi
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x49a652
cmp dword [esp + 0x14], edi
je 0x49a652
mov ebp, 2
mov dword [esp + 0x20], ebp
mov eax, dword [0x669694]
mov ebx, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x18], ebx
mov dword [0x669694], eax
jle 0x49a20b
mov ecx, dword [0x669690]
mov esi, 0xc7dd90
mov dword [0x669694], 0x64
mov eax, dword [esi + ecx]
cmp eax, 1
mov ebx, 0x63
mov dword [esp + 0x18], ebx
jne 0x49a118
mov eax, dword [0x669680]
test eax, eax
je 0x49a14d
mov ecx, dword [ecx + 0xc7d958]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
jmp 0x49a147
cmp eax, 2
jne 0x49a135
mov eax, dword [0x669684]
test eax, eax
je 0x49a14d
mov ecx, dword [ecx + 0xc7d958]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x20]
jmp 0x49a147
cmp eax, 3
jne 0x49a14d
mov edx, dword [ecx + 0xc7d958]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [0x669690]
xor edi, edi
mov dword [ecx + 0xc7d958], edi
mov eax, dword [0x669690]
add eax, 0xc7d95c
push 0x432
push eax
call fcn.004232e0
mov ecx, dword [0x669690]
mov dword [esi + ecx], edi
mov edx, dword [0x669690]
mov dword [edx + 0xc7dd94], edi
mov eax, dword [0x669690]
mov esi, 0xc7dd98
mov eax, dword [esi + eax]
add esp, 8
cmp eax, edi
je 0x49a19c
push eax
call fcn.005d9fa3
add esp, 4
mov ecx, dword [0x669690]
xor edx, edx
mov dword [esi + ecx], edx
mov eax, dword [0x669690]
mov dword [eax + 0xc7dd9c], edx
mov edi, dword [0x669690]
add edi, 0xc7dda0
xor eax, eax
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov edi, dword [0x669690]
add edi, 0xc7dddc
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov edi, dword [0x669690]
add edi, 0xc7de14
mov ecx, 0x7fff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [0x669690]
mov dword [ecx + 0xc9de18], edx
mov eax, dword [0x669690]
mov dword [eax + 0xc9de1c], edx
mov eax, dword [0x669694]
mov ecx, dword [0x669690]
imul eax, eax, 0x204c8
push eax
push ecx
call fcn.005dbd64
mov edx, eax
add esp, 8
test edx, edx
je 0x49a82a
mov ebp, ebx
imul ebp, ebp, 0x204c8
mov dword [0x669690], edx
lea edi, [edx + ebp]
xor eax, eax
mov ecx, 0x8132
rep stosd dword es:[edi], eax
mov edx, dword [0x669690]
mov eax, dword [esp + 0x14]
mov dword [edx + ebp], eax
mov ecx, dword [0x669690]
mov edx, dword [esp + 0x20]
push 1
push ebx
mov dword [ecx + ebp + 0x438], edx
call fcn.00499410
mov eax, dword [0x669690]
mov ecx, dword [eax + ebp]
mov esi, dword [esp + 0x80]
add esp, 8
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x669684]
test eax, eax
mov dword [esp + 0x24], 0
je 0x49a2b0
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [0x669690]
mov ecx, dword [ecx + ebp]
push ecx
push esi
push eax
call dword [edx + 0x1c]
test eax, eax
jge 0x49a2e1
mov eax, dword [0x669680]
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [0x669690]
mov ecx, dword [ecx + ebp]
push ecx
push esi
push eax
call dword [edx + 0x1c]
test eax, eax
jge 0x49a2e1
mov edx, dword [esp + 0x1c]
mov eax, dword [0x669690]
mov dword [eax + ebp + 0x43c], edx
jmp 0x49a2f2
mov ecx, dword [esp + 0x24]
mov edx, dword [0x669690]
mov dword [edx + ebp + 0x43c], ecx
mov ecx, dword [0x669690]
xor eax, eax
mov dword [ecx + ebp + 0x440], eax
mov edx, dword [0x669690]
mov dword [edx + ebp + 0x444], eax
mov eax, dword [0x669690]
lea esi, [eax + 0x448]
lea edi, [eax + ebp + 0x448]
mov ecx, 0xf
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x669690]
xor eax, eax
lea edi, [edx + ebp + 0x484]
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov edx, dword [0x669690]
lea edi, [edx + ebp + 0x4bc]
mov ecx, 0x7fff
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
stosw word es:[edi], ax
mov eax, dword [0x669690]
mov dword [eax + ebp + 0x204c0], ecx
mov edx, dword [0x669690]
xor eax, eax
mov dword [edx + ebp + 0x204c4], eax
mov eax, dword [0x669690]
mov edx, dword [esp + 0x78]
lea ecx, [eax + ebp + 0x484]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov eax, dword [esp + 0x78]
push ebx
push eax
call fcn.00499250
mov eax, dword [0x669690]
add esp, 8
test ebx, ebx
mov dword [esp + 0x28], 0
jle 0x49a5ed
xor esi, esi
nop
mov ecx, dword [esi + eax + 0x43c]
cmp ecx, dword [eax + ebp + 0x43c]
jne 0x49a455
mov edx, dword [esi + eax + 0x444]
cmp edx, dword [eax + ebp + 0x444]
jne 0x49a455
lea ecx, [eax + ebp + 4]
push ecx
lea edx, [esi + eax + 4]
push edx
call fcn.005f1860
add esp, 8
test eax, eax
mov eax, dword [0x669690]
jne 0x49a455
mov ecx, dword [esi + eax + 0x444]
xor edi, edi
test ecx, ecx
jbe 0x49a44c
mov edx, dword [esi + eax + 0x440]
mov ecx, dword [eax + ebp + 0x440]
mov ebx, dword [esi + eax + 0x440]
add edx, 2
sub ebx, ecx
mov dword [esp + 0x2c], ebx
jmp 0x49a424
mov ebx, dword [esp + 0x2c]
mov bx, word [ebx + ecx]
cmp bx, word [ecx]
jne 0x49a448
mov bx, word [edx]
cmp bx, word [ecx + 2]
jne 0x49a448
mov ebx, dword [esi + eax + 0x444]
inc edi
add edx, 4
add ecx, 4
cmp edi, ebx
jb 0x49a420
mov ebx, dword [esp + 0x18]
cmp edi, dword [esi + eax + 0x444]
je 0x49a471
mov ecx, dword [esp + 0x28]
inc ecx
add esi, 0x204c8
cmp ecx, ebx
mov dword [esp + 0x28], ecx
jl 0x49a3b0
jmp 0x49a5ed
mov ebx, dword [esp + 0x28]
mov ecx, ebx
imul ecx, ecx, 0x204c8
mov edi, dword [ecx + eax]
mov esi, dword [ecx + eax + 0x438]
lea edx, [ecx + eax + 0x438]
mov eax, dword [eax + ebp + 0x438]
mov dword [edx], eax
mov eax, dword [0x669690]
mov edx, dword [eax + ebp]
mov dword [ecx + eax], edx
mov eax, dword [0x669690]
mov dword [eax + ebp + 0x438], esi
mov ecx, dword [0x669690]
mov dword [ecx + ebp], edi
mov ecx, dword [0x669690]
mov eax, dword [ecx + ebp + 0x438]
cmp eax, 1
jne 0x49a4e6
mov eax, dword [0x669680]
xor esi, esi
cmp eax, esi
je 0x49a51f
mov ecx, dword [ecx + ebp]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov ecx, dword [0x669690]
jmp 0x49a51f
cmp eax, 2
jne 0x49a508
mov eax, dword [0x669684]
xor esi, esi
cmp eax, esi
je 0x49a51f
mov ecx, dword [ecx + ebp]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x20]
mov ecx, dword [0x669690]
jmp 0x49a51f
cmp eax, 3
jne 0x49a51d
mov edx, dword [ecx + ebp]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [0x669690]
xor esi, esi
mov dword [ecx + ebp], esi
mov eax, dword [0x669690]
lea ecx, [eax + ebp + 4]
push 0x432
push ecx
call fcn.004232e0
mov edx, dword [0x669690]
mov dword [edx + ebp + 0x43c], esi
mov eax, dword [0x669690]
mov eax, dword [eax + ebp + 0x440]
add esp, 8
cmp eax, esi
je 0x49a55f
push eax
call fcn.005d9fa3
add esp, 4
mov ecx, dword [0x669690]
mov dword [ecx + ebp + 0x440], esi
mov edx, dword [0x669690]
mov dword [edx + ebp + 0x444], esi
mov eax, dword [0x669690]
mov dword [eax + ebp + 0x438], esi
mov edx, dword [0x669690]
xor eax, eax
lea edi, [edx + ebp + 0x448]
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov edx, dword [0x669690]
lea edi, [edx + ebp + 0x484]
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov edx, dword [0x669690]
mov ecx, 0x7fff
lea edi, [edx + ebp + 0x4bc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x669690]
mov dword [eax + ebp + 0x204c0], esi
mov ecx, dword [0x669690]
mov dword [ecx + ebp + 0x204c4], esi
dec dword [0x669694]
mov eax, dword [0x669690]
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
xor esi, esi
test edi, edi
jle 0x49a635
jmp 0x49a600
mov cx, word [edx + esi*2]
cmp cx, 0x20
je 0x49a630
movzx ecx, cx
cmp ecx, 0x1fffe
jge 0x49a630
mov edi, ebx
imul edi, edi, 0x204c8
add edi, ecx
mov byte [edi + eax + 0x4bc], 1
mov edi, dword [esp + 0x10]
mov eax, dword [0x669690]
inc esi
cmp esi, edi
jl 0x49a600
cmp dword [esp + 0x20], 3
jne 0x49a887
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
xor ebp, ebp
jmp 0x499e67
mov dword [esp + 0x14], edi
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x7c]
xor ecx, ecx
test ebp, ebp
jle 0x49a684
mov ax, word [esi + ecx*2]
cmp ax, 0x20
je 0x49a67f
movzx eax, ax
cmp eax, 0x1fffe
jge 0x49a67f
mov byte [eax + 0x649068], 1
inc ecx
cmp ecx, ebp
jl 0x49a664
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x49a8e3
lea eax, [esi + ebp*2]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x80]
sub eax, ebp
xor ecx, ecx
test eax, eax
setle cl
mov dword [esp + 0x80], eax
inc ecx
jmp 0x499be3
cmp dword [esp + 0x8c], ebp
je 0x49a6dd
sub esi, eax
xor ecx, ecx
cmp esi, ebp
setle cl
lea ebx, [ebx + eax*2]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], esi
inc ecx
jmp 0x499bee
push ebp
push edi
call fcn.00499410
add esp, 8
test eax, eax
je 0x49a656
mov ecx, dword [0x669690]
mov eax, dword [esp + 0x78]
mov esi, edi
imul esi, esi, 0x204c8
mov edx, dword [esi + ecx]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x669690]
mov edx, dword [esp + 0x30]
mov dword [esi + ecx + 0x204c0], edx
mov ecx, dword [0x669690]
xor eax, eax
pop edi
mov dword [esi + ecx + 0x204c4], eax
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
xor edx, edx
cmp ebp, edi
mov edi, dword [esp + 0x7c]
jle 0x49a77d
mov ebx, esi
imul ebx, ebx, 0x204c8
lea ebx, [ebx]
mov cx, word [edi + edx*2]
cmp cx, 0x20
je 0x49a778
movzx ecx, cx
cmp ecx, 0x1fffe
jge 0x49a778
add ecx, ebx
mov byte [ecx + eax + 0x4bc], 1
mov ebp, dword [esp + 0x10]
mov eax, dword [0x669690]
inc edx
cmp edx, ebp
jl 0x49a750
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x49a7ac
mov esi, dword [esp + 0x80]
sub esi, ebp
xor ecx, ecx
test esi, esi
setle cl
lea ebx, [edi + ebp*2]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], esi
inc ecx
jmp 0x499bf3
push 0
push esi
call fcn.00499410
add esp, 8
test eax, eax
je 0x49a656
mov edx, dword [0x669690]
imul esi, esi, 0x204c8
mov eax, dword [esi + edx]
mov ebx, dword [esp + 0x78]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x669690]
mov edx, dword [esp + 0x30]
mov dword [esi + ecx + 0x204c0], edx
mov ecx, dword [0x669690]
xor eax, eax
mov dword [esi + ecx + 0x204c4], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x18]
push edx
sub eax, ecx
push eax
lea eax, [edi + ecx*2]
push eax
push ebx
call fcn.004995d0
mov ecx, dword [esp + 0x20]
add esp, 0x10
pop edi
pop esi
add ecx, eax
pop ebp
mov eax, ecx
pop ebx
add esp, 0x64
ret
cmp ebp, 1
jne 0x49a84c
mov eax, dword [0x669680]
test eax, eax
je 0x49a656
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
jmp 0x49a656
cmp ebp, 2
jne 0x49a86e
mov eax, dword [0x669684]
test eax, eax
je 0x49a656
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x20]
jmp 0x49a656
cmp ebp, 3
jne 0x49a656
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x49a656
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x49a8c3
lea ecx, [edx + edi*2]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
sub ecx, edi
xor edx, edx
test ecx, ecx
setle dl
mov dword [esp + 0x80], ecx
mov esi, dword [esp + 0x80]
inc edx
mov ecx, edx
jmp 0x499bf3
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push ecx
sub eax, edi
push eax
mov eax, dword [esp + 0x80]
lea edx, [edx + edi*2]
push edx
push eax
jmp 0x49a812
mov ecx, dword [0x669690]
mov edx, dword [ecx]
mov edi, dword [esp + 0x78]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x669690]
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x204c0], ecx
mov edx, dword [0x669690]
mov ecx, dword [esp + 0x80]
xor eax, eax
mov dword [edx + 0x204c4], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edi
call fcn.004995d0
add esp, 0x10
test eax, eax
jg 0x49a978
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret
cmp ecx, 2
jne 0x49a976
mov edx, dword [eax]
mov eax, dword [esp + 0x78]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [0x669690]
mov edx, dword [esp + 0x30]
mov dword [ecx + 0x204c0], edx
mov ecx, dword [0x669690]
xor eax, eax
mov dword [ecx + 0x204c4], eax
call fcn.00499910
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret